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 JetBrains Rider: visual elements of the editor](https://resources.jetbrains.com/help/img/rider/2024.3/editor_basics.png)
|
|
tip
To extend the editor area, you can hide all tool windows by pressing or by double-clicking the current editor tab, or you can hide all IDE elements in the Zen Mode by choosing View | Appearance | Toggle Zen mode from the menu.
General colors of visual elements in the editor are defined by the user interface theme; colors and font size of specific code elements are defined by the editor color scheme.
tip
To change the color and font of any item in the editor, place the caret to that item, press Ctrl0Q or choose Help | Find Action from the main menu. In the popup that opens, start typing
jump to colors and fonts
, select the corresponding item and press Enter.
By default, editor shows line numbers in all files that you open. If you prefer not to see line numbers, clear the Show line numbers checkbox on the Editor | General | Appearance page of JetBrains Rider settings CtrlAlt0S.
Apart from that, you can show or hide line numbers in the current document without changing the global setting: select View | Active Editor | Show Line Numbers from the main menu.
When working with code files, you normally do not need soft wraps if your code is properly formatted.
If you need to enable soft wraps in specific kinds of files, select Soft-wrap these files on the Editor | General page of JetBrains Rider settings CtrlAlt0S and add a wildcard for the corresponding file names.
You can use the following shortcuts for basic editing tasks:
Ctrl0X | |
Ctrl0C | |
Ctrl0V | |
CtrlAltShift0V | |
CtrlShift0V | |
CtrlShift0C | |
CtrlAltShift0C | |
CtrlShift0S | |
Ctrl0Z | |
Ctrl0Y | |
Tab | |
ShiftTab | |
| |
CtrlShiftEnter | |
CtrlEnter | |
Ctrl0L | |
CtrlShift0J | |
Ctrl0D | |
CtrlShift0U | |
CtrlAltShiftInsert | |
ShiftF4 | |
Show Whitespaces | Ctrl0R,0W |
Soft-Wrap | Ctrl0E,0W |
CtrlShift0. | |
CtrlShift0, |
For the full list of JetBrains Rider keyboard shortcuts, refer to Keyboard shortcuts in predefined keymaps.