Anthony Girdler
Anthony Girdler

Reputation: 1

How do I insert brackets and curly braces in visual studio?

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.

Upvotes: 0

Views: 1633

Answers (1)

Shridhar R Kulkarni
Shridhar R Kulkarni

Reputation: 7063

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.

Upvotes: 3

Related Questions