breandan 801b0b640f Migrate links to .java classes from GitHub to Upsource.
The first step in migrating the documentation to Upsource. This has the added benefit of tying us to a specific version in case of code drift. Future migrations will be required in order to use method links (when supported).

Search:  \(https://github.com/JetBrains/intellij-community/blob/master/(.+\.java)\)
Replace: \(https://upsource.jetbrains.com/idea-community/file/1731d054af4ca27aa827c03929e27eeb0e6a8366/$1\)
2015-08-18 16:40:09 -04:00

2.0 KiB

title
Basics of working with the Editor

Source code


This tutorial will lead you through the series of steps showing how to work with the Editor in IntelliJ IDEA, how access and modify text it contains, and how to handle events sent to the Editor.

Note: The described part of the API allows to operate only with text. If you need to access PSI please see PSI Cookbook section.

See also: editor-ui-api package, Editor.java, EditorImpl.java. CommonDataKeys.java, DataKey.java, AnActionEvent, DataContext

Related topics: Action System