Create and Edit Code
In this section:
- Editor Basics
- Coding Assistance
- Code Generation
- Localization Assistance
- Code Templates
- Local History
- Design Windows Forms
- Compare files
You can use the following shortcuts for basic editing tasks:
Basic editing
Cut | Ctrl+X |
Copy | Ctrl+C |
Paste | Ctrl+V |
Paste as Plain Text | Ctrl+Alt+Shift+V |
Paste from History... | Ctrl+Shift+V |
Duplicate Line or Selection | Ctrl+D |
Copy Paths | Ctrl+Shift+C |
Copy Reference | Ctrl+Alt+Shift+C |
Save All | Ctrl+S |
Undo | Ctrl+Z |
Redo | Ctrl+Shift+Z |
Indent Selection | Tab |
Unindent Line or Selection | Shift+Tab |
Start New Line | Shift+Enter |
Start New Line Before Current | Ctrl+Alt+Enter |
Delete Line | Ctrl+Y |
Toggle Case | Ctrl+Shift+U |
Scratch File | Ctrl+Alt+Shift+Insert |
Open source in new window | Shift+F4 |
Show Whitespaces | Ctrl+R, W |
Soft-Wrap | Ctrl+E, W |
Caret navigation
Move Caret to Previous Word | Ctrl+Left |
Move Caret to Next Word | Ctrl+Right |
Move Caret to Line Start | Home |
Move Caret to Line End | End |
Containing Declaration | Alt+Shift+[ |
Move Caret to Matching Brace | Ctrl+Shift+M |
Move Caret to Code Block Start | Ctrl+[ |
Move Caret to Code Block End | Ctrl+] |
Next Method | Alt+Down |
Previous Method | Alt+Up |
Move Caret to Page Top | Ctrl+Page Up |
Move Caret to Page Bottom | Ctrl+Page Down |
Page Up | Page Up |
Page Down | Page Down |
Move Caret to Text Start | Ctrl+Home |
Move Caret to Text End | Ctrl+End |
Select text
Select All | Ctrl+A |
Left with Selection | Shift+Left |
Right with Selection | Shift+Right |
Move Caret to Previous Word with Selection | Ctrl+Shift+Left |
Move Caret to Next Word with Selection | Ctrl+Shift+Right |
Move Caret to Line Start with Selection | Shift+Home |
Move Caret to Line End with Selection | Shift+End |
Up with Selection | Shift+Up |
Down with Selection | Shift+Down |
Select Containing Declaration | Ctrl+Alt+Shift+[ |
Move Caret to Code Block Start with Selection | Ctrl+Shift+[ |
Move Caret to Code Block End with Selection | Ctrl+Shift+] |
Move Caret to Page Top with Selection | Ctrl+Shift+Page Up |
Move Caret to Page Bottom with Selection | Ctrl+Shift+Page Down |
Page Up with Selection | Shift+Page Up |
Page Down with Selection | Shift+Page Down |
Move Caret to Text Start with Selection | Ctrl+Shift+Home |
Move Caret to Text End with Selection | Ctrl+Shift+End |
Extend Selection | Ctrl+W |
Shrink Selection | Ctrl+Shift+W |
Multiple carets and selection ranges
Add/Remove Caret | Alt+Shift+Click |
Toggle Column Selection Mode | Alt+Shift+Insert |
Clone Caret Above | Double Ctrl + Up |
Clone Caret Below | Double Ctrl + Down |
Clone Caret Above with Virtual Space | Alt+Shift+Up |
Clone Caret Below with Virtual Space | Alt+Shift+Down |
Add Caret to Each Line in Selection | Alt+Shift+G |
Add Selection for Next Occurrence | Alt+J |
Select All Occurrences | Ctrl+Alt+Shift+J |
Deselect Last Occurrence | Alt+Shift+J |
Create Rectangular Selection | Alt+Shift+Middle-Click |
Drag to Create Rectangular Selection | Alt+Click |
Drag to Create Multiple Rectangular Selections | Ctrl+Alt+Shift+Click |
And here are shortcuts for advanced code editing helpers:
Coding assistance
Show Intention Actions | Alt+Enter |
Basic Completion | Ctrl+Space |
Type-Matching Completion | Ctrl+Shift+Space |
Second Basic Completion | Ctrl+Alt+Space |
Complete Current Statement | Ctrl+Shift+Enter |
Reformat Code | Ctrl+Alt+L |
Parameter Info | Ctrl+P |
Quick Documentation | Ctrl+Q |
Move Statement Up | Ctrl+Shift+Up |
Move Statement Down | Ctrl+Shift+Down |
Move Element Left | Ctrl+Alt+Shift+Left |
Move Statement Right | Ctrl+Alt+Shift+Right |
Move Line Up | Alt+Shift+Up |
Move Line Down | Alt+Shift+Down |
Comment with Line Comment | Ctrl+/ |
Comment with Block Comment | Ctrl+Shift+/ |
Generate... | Alt+Insert |
Code Cleanup... | Ctrl+E, C |
Silent Code Cleanup | Ctrl+E, F |
For the full list of JetBrains Rider keyboard shortcuts, see Keyboard shortcuts in predefined keymaps.
Last modified: 07 May 2021