Reputation: 2813
How to align/indent text under Visual Studio 2012
, to achieve the below:
Original code
SomeThing = A + B + C
SomeLongerThing = D + E + F
Organized code
SomeThing = A + B + C
SomeLongerThing = D + E + F
If I try to hit Tab
button on keyboard to add indentation, Visual Studio automatically squeezes the code back to the orignial position (as shown in the Original code above).
Upvotes: 2
Views: 15382
Reputation: 4823
This is part of the pretty listing feature of VS. See Tools -> Options ... -> Text Editor -> Basic -> VB Specific -> Checkbox "Pretty listing (reformatting) of code".
Related: Turn off pretty listing in visual studio
Upvotes: 3