Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a shortcut to move the cursor as shown in the following figure?

I am using a notebook without a mouse.

After typing prop and pressing tab, Visual Studio will automatically give me a property template. Pressing tab will move the cursor between type and propertyname placeholders.

I want to move the cursor to a new line after completing the property template.

Is there a shortcut to do so?

enter image description here

like image 375
LaTeX Avatar asked Dec 04 '22 23:12

LaTeX


2 Answers

Press the Enter key twice.

I tried to post this answer 3 times before I left the comment. It wouldn't let me, too short. That's why I'm typing this otherwise useless verbiage.

like image 150
Hans Passant Avatar answered Mar 08 '23 22:03

Hans Passant


It's not specific to snippets, but you can press Ctrl+Shift+Enter to start a new line below where the cursor currently is.

To insert a new line above where the cursor currently is, use Ctrl+Enter.

Both of these work anywhere in the editor. Both of these are handy because they work no matter where you are horizontally on your current line.

like image 40
Chris Schmich Avatar answered Mar 09 '23 00:03

Chris Schmich