Visual Studio Tip: Where Does the Open Brace Go?

Sign in to queue

Description

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.

 

Embed

Download

The Discussion

Add Your 2 Cents