Skip to content

Select code

In addition to the traditional click-and-drag way of selecting contiguous text in a file, Studio provides language-aware selection, multiple selection of the occurrences of a string and selection in column.

Language-aware selection

Studio is "language aware" when it comes to selecting rules code.

  • To select a word inside a .cr file, put the cursor on it and press Ctrl+W.

  • To extend the selection to gradually larger elements of the code, keep pressing Ctrl+W.

  • To progressively shrink the selection press Ctrl+Shift+W.

Multiple string selection

Multiple string selection allows you to quickly select and edit the occurrences of a string wherever they are in the code.

To create a multiple selection:

  1. Select a string—it can even be a single character.
  2. Press Alt+J to select the next occurrence.
  3. Press Alt+J again to go forward, or Shift+Alt+J to go back.


While you select, you will see more blinking cursors, one for every selected occurrence.

To replace all the selected occurrences just enter the replacement text once.


You can get a similar result by selecting the occurrences found with file search.

Column selection mode

Column selection mode allows multiple code selection in columns. It might be helpful when you want to edit several lines of code simultaneously.

By default column selection mode is disabled.
To toggle column selection mode:

  • Right-click in the editing area and choose Column Selection Mode.


  • Press Shift+Alt+Insert.

Once the selection mode is enabled, to select columns of text just click and drag the cursor.
You will notice a blinking cursor to the right of each segment of the selection. This is to indicate that the text you enter will be repeated in every segment.


Selection mode change is effective for the current editor session only. If you close and reopen the editor, the default selection mode will be restored.