From eec5f0dc145d513e9a7e7c2f4edbe82b99a9b3e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Thu, 22 Sep 2022 18:19:48 +0200 Subject: [PATCH] more "Product Help Topics" links --- topics/basics/basic_action_system.md | 6 ++++++ .../custom_language_support/code_completion.md | 6 ++++++ .../custom_language_support/code_formatting.md | 6 ++++++ .../code_inspections_and_intentions.md | 6 ++++++ .../custom_language_support/safe_delete_refactoring.md | 8 +++++++- .../custom_language_support/structure_view.md | 6 ++++++ .../custom_language_support/surround_with.md | 6 ++++++ topics/reference_guide/multiple_carets.md | 6 ++++++ topics/reference_guide/project_model/module.md | 1 + 9 files changed, 50 insertions(+), 1 deletion(-) diff --git a/topics/basics/basic_action_system.md b/topics/basics/basic_action_system.md index 514cb83a0..587575f93 100644 --- a/topics/basics/basic_action_system.md +++ b/topics/basics/basic_action_system.md @@ -2,6 +2,12 @@ + + +**Product Help Topics:** [Menus and toolbars](https://www.jetbrains.com/help/idea/customize-actions-menus-and-toolbars.html) + + + The actions system allows plugins to add their items to IntelliJ Platform-based IDE menus and toolbars. For example, one of the action classes is responsible for the File | Open File... menu item and the Open... toolbar button. diff --git a/topics/reference_guide/custom_language_support/code_completion.md b/topics/reference_guide/custom_language_support/code_completion.md index 1008b08e0..adefb7d19 100644 --- a/topics/reference_guide/custom_language_support/code_completion.md +++ b/topics/reference_guide/custom_language_support/code_completion.md @@ -2,6 +2,12 @@ + + +**Product Help Topics:** [Code completion](https://www.jetbrains.com/help/idea/auto-completing-code.html) + + + Two main types of code completion can be provided by custom language plugins: reference completion and contributor-based completion. Reference completion is easier to implement, but supports only the basic completion action. diff --git a/topics/reference_guide/custom_language_support/code_formatting.md b/topics/reference_guide/custom_language_support/code_formatting.md index ae585406c..d43657ff5 100644 --- a/topics/reference_guide/custom_language_support/code_formatting.md +++ b/topics/reference_guide/custom_language_support/code_formatting.md @@ -2,6 +2,12 @@ + + +**Product Help Topics:** [Code style and formatting](https://www.jetbrains.com/help/idea/code-style.html) + + + The IntelliJ Platform includes a powerful framework for implementing custom language formatters. In this framework, the plugin specifies the *constraints* on the whitespaces between different syntax elements. The formatting engine, provided by the IDE, calculates the smallest number of whitespace modifications that need to be performed on the file to make it match the constraints. diff --git a/topics/reference_guide/custom_language_support/code_inspections_and_intentions.md b/topics/reference_guide/custom_language_support/code_inspections_and_intentions.md index dc1a85fcf..19838a3cd 100644 --- a/topics/reference_guide/custom_language_support/code_inspections_and_intentions.md +++ b/topics/reference_guide/custom_language_support/code_inspections_and_intentions.md @@ -2,6 +2,12 @@ + + +**Product Help Topics:** [Code inspections](https://www.jetbrains.com/help/idea/code-inspection.html), [Intention actions](https://www.jetbrains.com/help/idea/intention-actions.html) + + + ### Inspections The code inspections for custom languages use the same API as all other code inspections, based on the [`LocalInspectionTool`](%gh-ic%/platform/analysis-api/src/com/intellij/codeInspection/LocalInspectionTool.java) class. diff --git a/topics/reference_guide/custom_language_support/safe_delete_refactoring.md b/topics/reference_guide/custom_language_support/safe_delete_refactoring.md index e2dc2b303..278977611 100644 --- a/topics/reference_guide/custom_language_support/safe_delete_refactoring.md +++ b/topics/reference_guide/custom_language_support/safe_delete_refactoring.md @@ -2,7 +2,13 @@ -The _Safe Delete_ refactoring also builds on the same [Find Usages](find_usages.md) framework as [Rename Refactoring](rename_refactoring.md). + + +**Product Help Topics:** [Safe delete](https://www.jetbrains.com/help/idea/safe-delete.html) + + + +The _Safe Delete_ refactoring also builds on the same [](find_usages.md) framework as [](rename_refactoring.md). In addition to that, to support _Safe Delete_, a plugin needs to implement two things: diff --git a/topics/reference_guide/custom_language_support/structure_view.md b/topics/reference_guide/custom_language_support/structure_view.md index b5b72e1c5..d3a4da2ef 100644 --- a/topics/reference_guide/custom_language_support/structure_view.md +++ b/topics/reference_guide/custom_language_support/structure_view.md @@ -2,6 +2,12 @@ + + +**Product Help Topics:** [Source file structure](https://www.jetbrains.com/help/idea/viewing-structure-of-a-source-file.html) + + + The Structure View implementation used for a specific file type can be customized on many levels. If a custom language plugin provides an implementation of the [`StructureView`](%gh-ic%/platform/editor-ui-api/src/com/intellij/ide/structureView/StructureView.java) interface, it can completely replace the standard structure view implementation with a custom user interface component. However, for most languages, this is not necessary, and the standard `StructureView` implementation provided by IntelliJ Platform can be reused. diff --git a/topics/reference_guide/custom_language_support/surround_with.md b/topics/reference_guide/custom_language_support/surround_with.md index 940040574..8e045d897 100644 --- a/topics/reference_guide/custom_language_support/surround_with.md +++ b/topics/reference_guide/custom_language_support/surround_with.md @@ -2,6 +2,12 @@ + + +**Product Help Topics:** [Surround code fragments](https://www.jetbrains.com/help/idea/surrounding-blocks-of-code-with-language-constructs.html) + + + To support the _Surround With_ action, the plugin needs to register one or more implementations of the [`SurroundDescriptor`](%gh-ic%/platform/lang-api/src/com/intellij/lang/surroundWith/SurroundDescriptor.java) interface in the `com.intellij.lang.surroundDescriptor` extension point. Each of the surround descriptors defines a possible type of code fragment that can be surrounded - for example, one surround descriptor can handle surrounding expressions, and another can handle statements. Each surround descriptor, in turn, contains an array of [`Surrounder`](%gh-ic%/platform/lang-api/src/com/intellij/lang/surroundWith/Surrounder.java) objects, defining specific templates which can be used for surrounding the selected code fragment (for example, _Surround With if_, _Surround With for_, and so on). diff --git a/topics/reference_guide/multiple_carets.md b/topics/reference_guide/multiple_carets.md index 41b7fbd39..be8ba2b95 100644 --- a/topics/reference_guide/multiple_carets.md +++ b/topics/reference_guide/multiple_carets.md @@ -2,6 +2,12 @@ + + +**Product Help Topics:** [Multiple cursors and selection ranges](https://www.jetbrains.com/help/idea/multicursor.html) + + + Most editor actions (keyboard navigation, text insertion and deletion, etc.) will be applied to each caret independently. Each caret has its own associated selection, which is a continuous range of document characters (can be empty). When after some action two or more carets end up in the same visual position, they are merged into a single caret with their associated selections merged into a single one. diff --git a/topics/reference_guide/project_model/module.md b/topics/reference_guide/project_model/module.md index 2a862e5d3..905bbd8be 100644 --- a/topics/reference_guide/project_model/module.md +++ b/topics/reference_guide/project_model/module.md @@ -1,6 +1,7 @@ [//]: # (title: Module) + **Product Help Topics:** [Modules](https://www.jetbrains.com/help/idea/modules.html)