Visual Studio Tip: Where Does the Open Brace Go? | Visual Studio Time Savers

  • Thread starter Thread starter Jonathan Rozenblit,
  • Start date Start date
J

Jonathan Rozenblit,

Guest
Want to start a fight between two coders? Ask them if the open brace goes on a new line or at the end of the method declaration! Luckily you can set up Visual Studio to put the brace in whichever location YOU prefer. Go to Quick Launch and type in "format" you will find lots of great options to control how your code is formatted by default in Visual Studio. Once you have the settings the way you want them, just use the keyboard shortcut CTRL+K+D to reformat any existing code. See formatting in action in this short video.



njs.gif


Continue reading...
 
Back
Top