From 6fd4e52432fa39803f2a0e450800b87a7d741fd6 Mon Sep 17 00:00:00 2001 From: Karol Lewandowski Date: Mon, 24 Jun 2024 16:41:28 +0200 Subject: [PATCH] code_intentions.md: Fix grammar/style --- topics/tutorials/code_intentions.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/topics/tutorials/code_intentions.md b/topics/tutorials/code_intentions.md index 6588f37d07f..654c4b29d07 100644 --- a/topics/tutorials/code_intentions.md +++ b/topics/tutorials/code_intentions.md @@ -2,7 +2,7 @@ # Intentions -Intention actions allowing to fix code issues or transform the code to a different form. +Intention actions allow fixing code issues or transforming the code to a different form. @@ -20,7 +20,7 @@ In addition, the sample plugin contains a JUnit-based test. The IntelliJ Platform analyzes your code and helps handle situations that may result in errors. When a possible problem is suspected, the IDE suggests an appropriate intention action, denoted with special icons. -See [Inspections](inspections.md) topic in UI Guidelines on naming, writing description, and message texts for inspections/intentions. +See the [Inspections](inspections.md) topic in UI Guidelines on naming, writing description, and message texts for inspections/intentions. You can view a list of all available intention actions as well as enable/disable them using the [Intentions List](https://www.jetbrains.com/help/idea/intention-actions.html#intention-settings) in Settings | Editor | Intentions. @@ -30,11 +30,11 @@ The [conditional_operator_intention](%gh-sdk-samples-master%/conditional_operato - How to analyze a [PSI tree](psi_files.md). - How to find a Java token of interest in the PSI tree. -- How to invoke a quick fix action for a token element under cursor using the [`PsiElementBaseIntentionAction`](%gh-ic%/platform/lang-api/src/com/intellij/codeInsight/intention/PsiElementBaseIntentionAction.java) class. +- How to invoke a quick-fix action for a token element under the cursor using the [`PsiElementBaseIntentionAction`](%gh-ic%/platform/lang-api/src/com/intellij/codeInsight/intention/PsiElementBaseIntentionAction.java) class. - How to create a JUnit test for this plugin using the [`IdeaTestFixtureFactory`](%gh-ic%/platform/testFramework/src/com/intellij/testFramework/fixtures/IdeaTestFixtureFactory.java) class. - How to add an intention description and before/after examples -> In case of providing multiple intention actions for a single element, their ordering is indeterministic due to performance reasons. +> In the case of providing multiple intention actions for a single element, their ordering is indeterministic due to performance reasons. > It is possible to push specific items up or down by implementing > [`HighPriorityAction`](%gh-ic%/platform/analysis-api/src/com/intellij/codeInsight/intention/HighPriorityAction.java) > or @@ -77,7 +77,7 @@ It can be customized with the `` element in ` Please note that running the test requires setting system property `idea.home.path` in the `test` task configuration of the Gradle build script. +> Note that running the test requires setting system property `idea.home.path` in the `test` task configuration of the Gradle build script. > {style="note"}