Just curious if the XAML editor is any better at auto-formatting and wrapping attributes in Visual Studio 2010.
Here's how the editor auto wraps attributes in 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>
Here's how I'd like the editor to auto wrap attributes:
<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>
Does VS 2010 grant my wish?
There's something close to that.
The new editor in VS2010 supports an auto-indent
word wrap mode. There is no way to activate it within the product, but a PM on our team wrote a quick extension that enables that mode. You can download it from the VS Gallery, or download it from the extension manager in VS2010 by searching for it by name ("word wrap" should be enough) or searching for Brittany Behrens, who wrote the extension.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With