Remember those days when your HTML code was auto-formatted in early versions of Visual Studio? While I don’t miss this feature (who does? ) there is an auto-format option for XAML in Visual Studio 2010 I usually turn on as it improves readability of XAML.
The option is somewhat hidden in configuration of VS2010: select Tools >> Options >> Text Editor >> XAML >> Formatting >> Spacing >> and check “Position each attribute on a separate line”.
Now compare Snapshot A below showing default XAML code in VS 2010 editor (see how you have to scroll back and forth to make any sense of XAML) with the Snapshot B showing the formatted version of the same XAML.
Snapshot A: Default Formatting of XAML
Snapshot B: Formatted XAML
To format a section of XAML just select it and either use the hot-keys “CTRL-E, F” or select Edit >> Advanced >> Format Selection in the Menu.
Tags: Visual Studio 2010, XAML
Exsilio Homepage | Software Development
So, to sum up the six easy steps are:
Tags: software development, TFS, Visual Studio 2010, Challenge Accepted
Have you ever wondered what those icons are on the top right of the toolbar? Don’t be afraid. Go ahead and click and see what happens.
These icon’s are very helpful. For instance if you accidentally closed out “Solution Explorer” one of these icons can help you open it back up. To find out which one, point your cursor on top of the icon’s and wait a second. A help dialogue box pops up that states what the icon is. Plus it will give you short cut keys.
Pretty cool, huh? After experimenting with the icons, now you can layout your custom workspace to maximize the efficiency of development work.
Tags: Visual Studio 2010, Tips
Software Development | Exsilio Homepage
Powered by Exsilio Solutions