Reputation: 1
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
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