In Visual Studio (I'm using 2012), is there any way of editing the way that Ctrl-K-D combinations handles its Auto-Formatting?
I don't mean changing what these key combinations do, I mean extending the way the auto-formatting is done.
The way it handles tabbing, etc are fine, I'm more concerned with white-space.
We're using a plugin that makes it easy to align variable properties, making them easy to read. Like so:
var test = 'whatever',
another = 'this one',
alignedProperly = 'yay';
Seems nitt-picky yes, but in really large Object literals it's so helpful to be able to read them!
Has anyone found where the rules for auto-formatting are located, and if they can be edited/changed? (Can't find them anywhere in the options!)
Are you looking for:
Tools > Options > Text Editor > C# > Formatting > Spacing > Set other spacing options > Ignore space in declaration statements
This is in VS 2010, but i guess 2012 should be somewhat similar.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With