Click here to Skip to main content
15,881,852 members
Articles / Web Development / ASP.NET
Alternative
Tip/Trick

Shortcut for format code file with proper spacing or tab

Rate me:
Please Sign up or sign in to vote.
2.50/5 (2 votes)
19 Oct 2010CPOL 11.3K   2   4
Alternatively, you can erase your closing bracket (}) and VS will format the whole block (between opening & closing bracket). This works only if there is no syntax error in that block.
Alternatively, you can erase your closing bracket (}) and VS will format the whole block (between opening & closing bracket). This works only if there is no syntax error in that block.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Unknown
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralThe block could be as big as whole code in that file or clas... Pin
Behzad Talebpour27-Feb-11 16:05
Behzad Talebpour27-Feb-11 16:05 
GeneralRe: No, no, you have to write perfect code first, then you never... Pin
johannesnestler22-Nov-11 7:03
johannesnestler22-Nov-11 7:03 
GeneralReason for my vote of 1 Its not proper way. Its something li... Pin
Doshi Kavita25-Feb-11 22:06
Doshi Kavita25-Feb-11 22:06 
Generalafter erasing ,retype } then only VS IDE will format the cod... Pin
Bikash Shrestha From Nepal24-Oct-10 6:16
Bikash Shrestha From Nepal24-Oct-10 6:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.