Provide virtual formatting in editors for XAML, Razor, ASP.NET Web Forms etc.
Declarative languages that are bound to a visual tree are often heavily nested and also tend to be refactored frequently. Maintaining the formatting for these languages can quickly become a chore, even with 'reformat' features.
Virtual formatting lets the editor handle indentation in the same way it handles syntax-coloring. Indentation of text is immediate and fluid as edit operations are completed; text just re-flows when the structure changes, there is no 'reformat' button.
No tabs or spaces are inserted for formatting, indentation is more akin to that of word-processors (but actually a lot smarter).
This video shows virtual formatting in action:
Basically you are requesting that the editors be changed so that indenting does not use spaces or tabs, but instead adjust the left margins. This is a good idea, but raises a number of issues:
What happens if people want indention handled differently?
How is the code stored? Are the files still readable in notepad or other editors?
This should be added as a general feature in Visual Studio. All languages would need this!
The following feedback item along with votes was transferred from the Visual Studio User Voice site. If you would like to view the original comment history, click here http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2262548-provide-virtual-formatting-in-editors-for-xaml-ra