mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 01:07:49 +08:00
missing image alt texts
This commit is contained in:
parent
3b8630cc5e
commit
8c70c95a26
@ -9,7 +9,7 @@ In addition, the comparing_references_inspection code sample demonstrates implem
|
|||||||
|
|
||||||
You can also create custom inspections through the IntelliJ IDEA user interface.
|
You can also create custom inspections through the IntelliJ IDEA user interface.
|
||||||
See [Code Inspection](https://www.jetbrains.com/idea/webhelp/code-inspection.html) and [Creating Custom Inspections](https://www.jetbrains.com/idea/help/creating-custom-inspections.html) for more information.
|
See [Code Inspection](https://www.jetbrains.com/idea/webhelp/code-inspection.html) and [Creating Custom Inspections](https://www.jetbrains.com/idea/help/creating-custom-inspections.html) for more information.
|
||||||
|
|
||||||
See [Inspections](https://jetbrains.design/intellij/text/inspections/) topic in the IntelliJ Platform UI Guidelines on naming, writing description, and message texts for inspections.
|
See [Inspections](https://jetbrains.design/intellij/text/inspections/) topic in the IntelliJ Platform UI Guidelines on naming, writing description, and message texts for inspections.
|
||||||
|
|
||||||
## Creating an Inspection Plugin
|
## Creating an Inspection Plugin
|
||||||
@ -156,7 +156,7 @@ You can specify the Java classes to participate in the code inspection and the s
|
|||||||
On the main menu, open the <menupath>Settings/Preferences | Editor | Inspections</menupath> dialog.
|
On the main menu, open the <menupath>Settings/Preferences | Editor | Inspections</menupath> dialog.
|
||||||
In the list of the IntelliJ IDEA <control>Java</control> inspections, expand the <control>Probable bugs</control> node, and then click <control>SDK: '==' or '!=' instead of 'equals()'</control>.
|
In the list of the IntelliJ IDEA <control>Java</control> inspections, expand the <control>Probable bugs</control> node, and then click <control>SDK: '==' or '!=' instead of 'equals()'</control>.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Under <control>Options</control>, you can specify the following plugin settings:
|
Under <control>Options</control>, you can specify the following plugin settings:
|
||||||
* From the <control>Severity</control> list, select the severity level of probable bugs the plugin finds such as <control>Warning</control>, <control>Error</control>, etc.
|
* From the <control>Severity</control> list, select the severity level of probable bugs the plugin finds such as <control>Warning</control>, <control>Error</control>, etc.
|
||||||
@ -168,7 +168,7 @@ Under <control>Options</control>, you can specify the following plugin settings:
|
|||||||
The plugin inspects your code opened in the IntelliJ IDEA editor.
|
The plugin inspects your code opened in the IntelliJ IDEA editor.
|
||||||
The plugin highlights the code fragments where two variables of the reference type are separated by `==` or `!=` and proposes to replace this code fragment with `.equals()`:
|
The plugin highlights the code fragments where two variables of the reference type are separated by `==` or `!=` and proposes to replace this code fragment with `.equals()`:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
In this example, the `str1` and `str2` are variables of the String type.
|
In this example, the `str1` and `str2` are variables of the String type.
|
||||||
Clicking <control>SDK: Use equals()</control> replaces:
|
Clicking <control>SDK: Use equals()</control> replaces:
|
||||||
|
@ -10,7 +10,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.
|
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.
|
When a possible problem is suspected, the IDE suggests an appropriate intention action, denoted with special icons.
|
||||||
For more information, refer to [Intention Actions](https://www.jetbrains.com/help/idea/intention-actions.html) in the IntelliJ IDEA Web Help.
|
For more information, refer to [Intention Actions](https://www.jetbrains.com/help/idea/intention-actions.html) in the IntelliJ IDEA Web Help.
|
||||||
|
|
||||||
See [Inspections](https://jetbrains.design/intellij/text/inspections/) topic in the IntelliJ Platform UI Guidelines on naming, writing description, and message texts for inspections/intentions.
|
See [Inspections](https://jetbrains.design/intellij/text/inspections/) topic in the IntelliJ Platform 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 <menupath>Settings/Preferences | Editor | Intentions</menupath>.
|
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 <menupath>Settings/Preferences | Editor | Intentions</menupath>.
|
||||||
@ -28,7 +28,7 @@ The [conditional_operator_intention](https://github.com/JetBrains/intellij-sdk-c
|
|||||||
|
|
||||||
When launched, this plugin adds the <control>Convert ternary operator if statement</control> item to the <control>Conditional Operator</control> node in the Intentions List:
|
When launched, this plugin adds the <control>Convert ternary operator if statement</control> item to the <control>Conditional Operator</control> node in the Intentions List:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
#### Running the Plugin
|
#### Running the Plugin
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ See [Code Samples](code_samples.md) on how to set up and run the plugin.
|
|||||||
The plugin analyzes symbols under the cursor in your code opened in the editor.
|
The plugin analyzes symbols under the cursor in your code opened in the editor.
|
||||||
If the cursor is positioned on the `?` conditional operator, IntelliJ IDEA proposes to replace this conditional (ternary) operator with the "if-then-else" statement:
|
If the cursor is positioned on the `?` conditional operator, IntelliJ IDEA proposes to replace this conditional (ternary) operator with the "if-then-else" statement:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
In this example, the code:
|
In this example, the code:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user