问题
if I press STRG K + D in VS2010 the code (e.g. HTML, ASPX) will be formatted and empty lines will be deleted.
If I use this shortcut in VS2012 the empty lines will not be deleted. Is there a way to do this?
回答1:
I use the following combination to auto format indentations of my code in VS2012.
Ctrl+A to select all the code in a file to be formatted. Or you can select just a block of the code.
Ctrl+K, then Ctrl+F will format the code with proper indentations.
No deletion of empty lines though.
来源:https://stackoverflow.com/questions/13123479/format-code-strg-k-d-in-vs-2012