0

Noob Question. What is the shortcut for inserting brackets and curly braces in visual studio? To look like this
(){

}
I've seen it in a video, but can't remember how to do it. Thanks in advance. Anthony.

1 Answers1

3

Type the appropriate keyword and press tab key on keyboard twice.

For example, if you type if and press tab key on keyboard twice, you will see the following code:

if (true)
{

}

You can try out other keywords like while, try, for,etc.

Shridhar R Kulkarni
  • 6,653
  • 3
  • 37
  • 57