mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 01:07:49 +08:00
* 251: update GH links in topics * code_samples: Gradle 2.x (WIP) * code_samples: Gradle 2.x (WIP) * code_samples: Gradle 2.x (WIP) * code_samples: Gradle 2.x (WIP) * code_samples: Gradle 2.x (WIP) * code_samples: Gradle 2.x (WIP) * GH: theme_basics is not a Gradle project * GH: remove deleted kotlin_demo project * README: remove deleted kotlin_demo project * code_samples: remove product_specific * 2025.1 Beta3 * code_samples: remove obsolete kotlin_demo dir * code_samples: add .intellijPlatform to .gitignore * stub_indexes.md: fix gh link * api_notable_list_2020.md: fix gh link * code_samples: add .gitignore for standalone repo * code_samples: build against latest 2024.2.x, set since-build explicitly * code_samples: fix framework_basics * Update EP and Listener lists * Convert %gh-ic-master% links to %gh-ic% * additional_minor_features.md: Update link to FileIncludeProvider * api_notable_list_2020.md: Add note about internal API * status_bar_widgets.md: Update StatusBarWidget.TextPresentation example The previous example doesn't implement TextPresentation any more. --------- Co-authored-by: Karol Lewandowski <karol.lewandowski@jetbrains.com>
Editor Sample Project 
Reference: Basics of Working with the Editor in IntelliJ SDK Docs
Quickstart
Editor Sample Project provides a TypedHandlerDelegate
implementation, which inserts editor_basics
on the top of the edited document any time user types a character.
In addition, three actions are available in the Editor context menu:
- Editor Replace Text - replaces the selected text with
editor_basics
, - Editor Add Caret - adds extra caret below the current one,
- Caret Position - shows message dialog with information about the caret position.
Extension Points
Name | Implementation | Extension Point Class |
---|---|---|
com.intellij.typedHandler |
MyTypedHandler | TypedHandlerDelegate |
Reference: Plugin Extension Points in IntelliJ SDK Docs
Actions
ID | Implementation | Base Action Class |
---|---|---|
EditorBasics.EditorIllustrationAction |
EditorIllustrationAction | AnAction |
EditorBasics.EditorHandlerIllustration |
EditorHandlerIllustration | AnAction |
EditorBasics.LogicalPositionIllustration |
EditorAreaIllustration | AnAction |
Reference: Action System in IntelliJ SDK Docs