code_inspections_and_intentions.md: link tutorials

This commit is contained in:
Yann Cébron 2020-05-06 14:37:51 +02:00
parent 151470c297
commit c1a574e284

View File

@ -12,7 +12,7 @@ class.
The functionality of The functionality of
[`LocalInspectionTool`](upsource:///platform/analysis-api/src/com/intellij/codeInspection/LocalInspectionTool.java) [`LocalInspectionTool`](upsource:///platform/analysis-api/src/com/intellij/codeInspection/LocalInspectionTool.java)
partially duplicates that of partially duplicates that of
[Annotator](./syntax_highlighting_and_error_highlighting.md#annotator). [Annotator](syntax_highlighting_and_error_highlighting.md#annotator).
The main differences are: The main differences are:
- supports batch analysis of code (through the **Analyze \| Inspect Code...** action) - supports batch analysis of code (through the **Analyze \| Inspect Code...** action)
@ -20,14 +20,12 @@ The main differences are:
- ability to configure the inspection options. - ability to configure the inspection options.
If none of that is required and the analysis only needs to run in the active editor, If none of that is required and the analysis only needs to run in the active editor,
[Annotator](./syntax_highlighting_and_error_highlighting.md#annotator) [Annotator](syntax_highlighting_and_error_highlighting.md#annotator)
provides better performance (because of its support for incremental analysis) and more flexibility for highlighting errors. provides better performance (because of its support for incremental analysis) and more flexibility for highlighting errors.
**Example**: **Examples**:
A - [Code Inspections Tutorial](/tutorials/code_inspections.md)
[simple inspection](upsource:///plugins/properties/properties-psi-impl/src/com/intellij/codeInspection/TrailingSpacesInPropertyInspection.java) - A [simple inspection](upsource:///plugins/properties/properties-psi-impl/src/com/intellij/codeInspection/TrailingSpacesInPropertyInspection.java) for [Properties language plugin](upsource:///plugins/properties/)
for
[Properties language plugin](upsource:///plugins/properties/)
### Intentions ### Intentions
@ -38,5 +36,6 @@ The intention classes need to implement the
interface and are registered using the `com.intellij.intentionAction` extension point in `plugin.xml`. interface and are registered using the `com.intellij.intentionAction` extension point in `plugin.xml`.
**Examples:** **Examples:**
- [Code Intentions Tutorial](/tutorials/code_intentions.md)
- A [simple intention action](upsource:///plugins/groovy/src/org/jetbrains/plugins/groovy/intentions/control/SplitIfIntention.java) for Groovy - A [simple intention action](upsource:///plugins/groovy/src/org/jetbrains/plugins/groovy/intentions/control/SplitIfIntention.java) for Groovy
- [Custom Language Support Tutorial: Quick Fix](/tutorials/custom_language_support/quick_fix.md) - [Custom Language Support Tutorial: Quick Fix](/tutorials/custom_language_support/quick_fix.md)