Visual Studio 2010 - C# - "Ignore spaces in declaration statements" not working -
Visual Studio 2010 - C# - "Ignore spaces in declaration statements" not working -
i using visual studio 2010 , have statements this:
a = 1; ab = 12; abc = 123; etc...
which much turn this:
a = 1; ab = 12; abc = 123; etc...
without visual studio turning them to first illustration when ending statement semi-colon or pressing ctrl-k + f (format selected lines).
i have checked box tools->options->text editor->c#->formatting->spacing->"ignore spaces in declaration statements" doesn't help. helps real declaration when creating new variable. is, works on next block:
int = 1; int ab = 12; int abc = 123; etc...
but (also) need alternative "ignore spaces in assignment statements". how do that? have tried install "align assignment" (https://visualstudiogallery.msdn.microsoft.com/0cc34d69-c6f1-41e3-ac6e-5de071b3edc8) , sure enough, aligns rows, visual studio de-aligns them automatically when formatting text file or editing rows.
this answered in duplicate question linked above. have verified works. of import missing part operator option. since can't comment , vote, here solution copied viktorcpp:
tools|options|c#|formatting
i. ignore spaces in declaration statements <<-- check this
and
ii. set spacing operators insert space... ignore spaces ... <<-- check this
c# visual-studio-2010 text-formatting
Comments
Post a Comment