Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Insufferable word wrap in Visual Studio XAML editor - is there any relief for 2010?

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?

like image 702
devuxer Avatar asked Jan 08 '10 18:01

devuxer


1 Answers

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.

like image 60
Noah Richards Avatar answered Nov 15 '22 19:11

Noah Richards