Create and edit code
In this section:
- Editor basics
- Coding assistance
- Code generation
- Localization assistance
- Code templates
- Local History
- Design Windows Forms
- Compare files and folders
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 |
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 |
Auto-Indent Lines | Ctrl+Alt+I |
Start New Line | Shift+Enter |
Start New Line Before Current | Ctrl+Alt+Enter |
Ctrl+Y | |
Ctrl+Shift+J | |
Duplicate Line or Selection | Ctrl+D |
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+L, W |
Alt+Shift+. | |
Alt+Shift+, |
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
Alt+Shift+Click | |
Alt+Shift+Insert | |
Double Ctrl + Up | |
Double Ctrl + Down | |
Alt+Shift+Up | |
Alt+Shift+Down | |
Alt+Shift+G | |
Alt+J | |
Ctrl+Alt+Shift+J | |
Alt+Shift+J | |
Alt+Shift+Middle-Click | |
Alt+Click | |
Ctrl+Alt+Shift+Click |
Code folding
Expand | Ctrl+NumPad Plus |
Collapse | Ctrl+NumPad Minus |
Expand Recursively | Ctrl+Alt+NumPad Plus |
Collapse Recursively | Ctrl+Alt+NumPad Minus |
Expand All | Ctrl+Shift+NumPad Plus |
Collapse All | Ctrl+Shift+NumPad Minus |
Collapse to Definitions | Ctrl+G, D |
Fold Selection | Ctrl+. |
And here are shortcuts for advanced code editing helpers:
Coding assistance
Show Intention Actions | Alt+Enter |
Ctrl+Space | |
Type-Matching Completion | Ctrl+Shift+Space |
Second Basic Completion | Ctrl+Alt+Space |
Complete Current Statement | Ctrl+Shift+Enter |
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+/ |
Surround With... | Ctrl+Alt+T |
Generate... | Alt+Insert |
Code Cleanup... | Ctrl+R, C |
Ctrl+R, G |
For the full list of JetBrains Rider keyboard shortcuts, refer to Keyboard shortcuts in predefined keymaps.