2

would just like to know if it is possible to have Visual Studios add a closing "}" right after I type the opening "{". So right after I type:

private void someMethod() {

I would like it to go ahead and do something like this:

private void someMethod() { }

or...

private void someMethod() {  
}

Thanks in advance for your help!

Cᴏʀʏ
  • 105,112
  • 20
  • 162
  • 194
jmess
  • 83
  • 5

3 Answers3

5

You can use the Productivity Power Tools extension.

Jeroen Vannevel
  • 43,651
  • 22
  • 107
  • 170
2

Install one or another (in order of tool complexity):

abatishchev
  • 98,240
  • 88
  • 296
  • 433
1

Use external tools for 2012. But it is a new feature that just got added to Visual Studio 2013.

Details: http://msdn.microsoft.com/library/vstudio/bb386063%28v=vs.120%29.aspx (Look under Nice Code Editor features)

Vaibhav Desai
  • 2,618
  • 1
  • 16
  • 16