JetBrains Rider 2020.3 Help

Editor Basics

The editor has a lot of visual elements that help you read, write, and navigate the code. Let's take a look at some of them.

JetBrains Rider: visual elements of the editor
  • Line numbers are displayed by default, but you can hide them by clearing the Show line numbers checkbox on the Editor | General | Appearance page of JetBrains Rider settings Ctrl+Alt+S.

  • Code folding adornments help you expand and collapse code elements.

  • Action indicators show that one or more actions are available for the current caret position. To see the available actions, press Alt+Enter or click the indicator.

  • Breakpoints let you suspend program execution at the marked statement.

  • Bookmarks let you mark code lines where you want to return later.

  • Syntax and error highlighting— while syntax highlighting improves the readability of clean code, error highlighting helps to visualize detected code issues.

  • Breadcrumbs at the bottom of the editor show and allow navigating the structural path from the top of the file to the current caret position.

In this section:

You can use the following shortcuts for basic editing tasks:

Move Caret to Previous WordCtrl+Left
Move Caret to Next WordCtrl+Right
Move Caret to Line StartHome
Move Caret to Line EndEnd
Containing DeclarationAlt+Shift+[
Move Caret to Matching BraceCtrl+Shift+M
Move Caret to Code Block StartCtrl+[
Move Caret to Code Block EndCtrl+]
Next MethodAlt+Down
Previous MethodAlt+Up
Move Caret to Page TopCtrl+Page Up
Move Caret to Page BottomCtrl+Page Down
Page UpPage Up
Page DownPage Down
Move Caret to Text StartCtrl+Home
Move Caret to Text EndCtrl+End
Select AllCtrl+A
Left with SelectionShift+Left
Right with SelectionShift+Right
Move Caret to Previous Word with SelectionCtrl+Shift+Left
Move Caret to Next Word with SelectionCtrl+Shift+Right
Move Caret to Line Start with SelectionShift+Home
Move Caret to Line End with SelectionShift+End
Up with SelectionShift+Up
Down with SelectionShift+Down
Select Containing DeclarationCtrl+Alt+Shift+[
Move Caret to Code Block Start with SelectionCtrl+Shift+[
Move Caret to Code Block End with SelectionCtrl+Shift+]
Move Caret to Page Top with SelectionCtrl+Shift+Page Up
Move Caret to Page Bottom with SelectionCtrl+Shift+Page Down
Page Up with SelectionShift+Page Up
Page Down with SelectionShift+Page Down
Move Caret to Text Start with SelectionCtrl+Shift+Home
Move Caret to Text End with SelectionCtrl+Shift+End
Extend SelectionCtrl+W
Shrink SelectionCtrl+Shift+W
Add Selection for Next OccurrenceAlt+J
Paste without FormattingCtrl+Alt+Shift+V
Paste from History...Ctrl+Shift+V
Duplicate Line or SelectionCtrl+D
Copy PathsCtrl+Shift+C
Copy ReferenceCtrl+Alt+Shift+C
Save AllCtrl+S
Indent SelectionTab
Unindent Line or SelectionShift+Tab
Start New LineShift+Enter
Start New Line Before CurrentCtrl+Alt+Enter
Delete LineCtrl+Y
Toggle CaseCtrl+Shift+U
New Scratch FileCtrl+Alt+Shift+Insert
Open source in new windowShift+F4
Last modified: 08 March 2021