Format Code (Strg K + D) in VS 2012


if I press <kbd>STRG</kbd> <kbd>K</kbd> + <kbd>D</kbd> 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?


I use the following combination to auto format indentations of my code in VS2012.

<kbd>Ctrl</kbd>+<kbd>A</kbd> to select all the code in a file to be formatted. Or you can select just a block of the code.

<kbd>Ctrl</kbd>+<kbd>K</kbd>, then <kbd>Ctrl</kbd>+<kbd>F</kbd> will format the code with proper indentations.

No deletion of empty lines though.


  • perl adds dummy elements to array after inquiry
  • Prepare a python string for R using rpy2
  • spark udf with data frame
  • How to parse given date string using moment.js?
  • Find text(A) and replace it with text(B) + HTML
  • Cannot open include file :'stddef.h' No such file or directory found error when creating a
  • Visual Studio 2010 Extensibility - Override Build Action without effecting cproj file
  • Simplifying the use of meshgrid in Matlab
  • Which JQuery document.ready is better? [duplicate]
  • Add the % on tab when working with HAML on vim
  • Intellij Idea Terminal shortcut not working
  • 'doc_del_count' bigger than 'doc_count' on CouchDB
  • Regex for URL rewrite with optional query string parameters
  • What is corresponding c++ data type to SQL numeric(18,0) data type?
  • Other than Linq to SQL does anything else consume INotifyPropertyChanging?
  • How can I get the choice “H2” back in the H2 consol?
  • Upload file that is in the cpan database
  • Switch to popup in python using selenium
  • Jackson Parser: ignore deserializing for type mismatch
  • How to use remove-erase idiom for removing empty vectors in a vector?
  • R - Combining Columns to String Based on Logical Match
  • Repeat a vertical line on every page in Report Builder / SSRS
  • Why value captured by reference in lambda is broken? [duplicate]
  • Why is an OPTIONS request sent to the server?
  • Read text file and split every line in MSBuild
  • How to add date and time under each post in guestbook in google app engine
  • script to move all files from one location to another location
  • Fill an image in a square container while keeping aspect ratio
  • Can a Chrome extension content script make an jQuery AJAX request for an html file that is itself a
  • Symfony2: How to get request parameter
  • Weird JavaScript statement, what does it mean?
  • jquery mobile loadPage not working
  • Return words with double consecutive letters
  • How do I rollback to a specific git commit
  • how to add data labels for bar graph in matlab
  • How to get icons for entities from eclipse?
  • ExecuteAsync RestSharp to allow backgroundWorker CancellationPending c#
  • Proper way to use connect-multiparty with express.js?
  • Load html files in TinyMce
  • JaxB to read class hierarchy