dev*_*xer 11 xaml visual-studio-2010 visual-studio-2008 visual-studio
只是好奇XAML编辑器在Visual Studio 2010中自动格式化和包装属性方面是否更好.
以下是编辑器在VS 2008中自动包装属性的方式:
<StackPanel Grid.Row="0" Grid.ColumnSpan="3">
<StackPanel Orientation="Horizontal">
<TextBlock VerticalAlignment="Center" FontWeight="Bold"
Text="Current User:" />
<ComboBox x:Name="_usersComboBox" Margin="5,0,0,0" Width="200"
ItemsSource="{Binding Users}" SelectedValuePath="Name"
SelectedValue="System Administration">
<ComboBox.ItemTemplate>
<DataTemplate>
Run Code Online (Sandbox Code Playgroud)
以下是我希望编辑器自动换行属性的方法:
<StackPanel Grid.Row="0" Grid.ColumnSpan="3">
<StackPanel Orientation="Horizontal">
<TextBlock VerticalAlignment="Center" FontWeight="Bold"
Text="Current User:" />
<ComboBox x:Name="_usersComboBox" Margin="5,0,0,0" Width="200"
ItemsSource="{Binding Users}" SelectedValuePath="Name"
SelectedValue="System Administration">
<ComboBox.ItemTemplate>
<DataTemplate>
Run Code Online (Sandbox Code Playgroud)
VS 2010是否符合我的愿望?
有一些接近的东西.
VS2010中的新编辑器支持自动auto-indent
换行模式.没有办法在产品中激活它,但我们团队的PM写了一个快速扩展,启用该模式.您可以从VS Gallery下载它,或者通过名称搜索它来从VS2010中的扩展管理器下载("自动换行"应该足够)或者搜索编写扩展名的Brittany Behrens.
小智 6
不.你应该打开一个Connect:
可能直到SP1才能成功,但我发现他们对B2周期中的建议非常敏感.你可能会感到惊讶......
归档时间: |
|
查看次数: |
1156 次 |
最近记录: |