CLion
 
Get CLion
You are viewing the documentation for an earlier version of CLion.

Multiple carets and selection ranges

Last modified: 16 July 2021

When typing, copying, or pasting, you can toggle multiple carets so that your actions apply in several places simultaneously. Advanced editor actions, such as code completion and live templates are supported as well and will apply to each caret.

The number of carets that you can add in a file is limited to 1000.

The most recently added caret is considered primary. Highlighting of the current editor line, completion lists, and other visual assistance features will apply to the primary caret. This caret will also remain when you turn off multiple carets.