前提・実現したいこと
Visual Studio 2017で、XAMLのインデントをコンピューターにやらせたいのですが、コードをタイピングして入力する場合は自動で正しくインデントされるのですが、コピーペーストでコードを挿入した場合に正しくインデントされません。
簡単な操作で正しくインデントし直すよい方法はないでしょうか?
よろしくお願いします。
該当のソースコード
XAML
1<Page Name="contentGrid" 2 x:Class="GradientBrushCode2.MainPage" 3 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 4 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 5 xmlns:local="using:GradientBrushCode2" 6 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 7 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 8 mc:Ignorable="d" 9 Background="{StaticResource ApplicationPageBackgroundThemeBrush}"> 10 <Grid> 11 <TextBlock Name="txtblk1" 12 Text="Hello, Windows8!" 13 FontSize="96"> 14 <TextBlock.Foreground> 15 <LinearGradientBrush StartPoint="0, 0" EndPoint="1, 0"> 16 <LinearGradientBrush.GradientStops> 17 <GradientStopCollection> 18 <GradientStop Offset="0.4" Color="Red"/> 19 <GradientStop Offset="0.6" Color="Blue"/> 20 </GradientStopCollection> 21 </LinearGradientBrush.GradientStops> 22 </LinearGradientBrush> 23 </TextBlock.Foreground> 24 </TextBlock> 25 <TextBlock> 26 AAA 27 </TextBlock> 28 </Grid> 29</Page>
※<Grid>の下の<TextBlock の部分です。
試したこと
編集メニューで該当する機能を探してみましたが、見つけることができませんでした。
環境
Microsoft Windows 10 Home (Version 10.0.17134 Build 17134)
Microsoft Visual Studio Community 2017 (Version 15.9.2)
Microsoft.NET Framework (Version 4.7.03056)
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。