JetBrains Rider 2019.2 Help

Adding, Deleting and Moving Lines

You normally press Enter to start a new line, but you can also start a new line even if the caret is currently in the middle of another line.

To add a new line

  • Press Shift+Enter to add a new line after the current line.

  • Press Ctrl+Enter to add a new line after the current line.

Instead of starting an empty line, you can duplicate an existing line and edit it as required.

To duplicate a line or a fragment

  1. Place the caret at the line to be duplicated, or select the desired fragment of text.

  2. Press Ctrl+D.

To delete the current line

  • Press Ctrl+Shift+L.

To move a line up or down

  1. Place the caret at the line to be moved.

  2. Do one of the following:

    • Choose Code | Move Line Up/Down from the main menu.

    • Press Shift+Alt+Up or Shift+Alt+Down.

Last modified: 18 October 2019