JetBrains Rider
 
Get JetBrains Rider
Get your hands on the new features ahead of the release by joining the Early Access Program for Rider 2025.1! Learn more

Handle caret and select text

Last modified: 08 October 2024

You can click the mouse in the editor to place the caret to the desired position and drag the mouse to select a continuous text block.

By default, you can only place the caret at characters, whitespaces, and tabs in the current document. Optionally, you can select Allow placement of caret after end of line on the Editor | General settings page  CtrlAlt0S to be able to place the caret anywhere after the last character in any line. As soon as you start typing at a position beyond the end of the line, the necessary number of spaces will be added between the end of the line and the beginning of your input.

You can double-click an identifier or a word in a comment or plain text to select it.

After double-clicking, you can drag the mouse to make the selection snap to entire words.

For identifiers, you can opt not to select the whole CamelCased identifier, but only the capitalized word inside it where you double-click. To do so, select Honor "CamelHumps" word on the Editor | General settings page  CtrlAlt0S.

Apart from the mouse, you can use keyboard shortcuts to speed up editor navigation and selection operations. The most handy commands and their shortcuts are listed in the tables below.

If you want to change the shortcut for some command, find this command on the Keymap settings page  CtrlAlt0S, and use the context menu to add or remove shortcuts.