IntelliJ Platform Plugin SDK
 
IntelliJ Platform Explorer

2. Editor Coordinates System. Positions and Offsets

Edit pageLast modified: 14 May 2024

The previous tutorial Working with Text demonstrated how to use actions to access a caret placed in a document open in an editor. The examples replaced selected text in a document by using information about the caret.

Every caret has a set of properties describing its position in one of several coordinate systems. This tutorial describes how to access information about the caret(s) in an editor.