Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to insert a new line while cursor is in between current line?

On VS2010, I have created a very simple marco that do:

  1. Hit "End" key
  2. Hit "Enter" key

Then bind it to Shift+Enter. So that even if I'm in between a line, I can easily insert a new line under and place the cursor at the beginning of the new line.

Now that marcos are gone in VS2012, I wonder how can I achieve the same job?

like image 647
neolei Avatar asked May 06 '14 08:05

neolei


People also ask

How do we make a new line under the current line?

If you want a new line at the top of the current line then press CTRL + SHIFT + ENTER. If you want a new line at the bottom of the current line then press CTRL+ ENTER.

How do I get my cursor on the next line?

If you are talking about moving the cursor to next line on screen when you are at command prompt then you can use the key combination ctrl+enter to add a line break and reach next line.

How do you go to the next line on the keyboard?

To add spacing between lines or paragraphs of text in a cell, use a keyboard shortcut to add a new line. Click the location where you want to break the line. Press ALT+ENTER to insert the line break.


1 Answers

Ctrl+Shift+Enter would do the work.

Possibly a duplicate.

like image 81
Leon Avatar answered Sep 30 '22 23:09

Leon