This topic describes the ConditionalOperatorConverter sample plugin that adds a new intention action to the IDEA Intensions list. In addition, the sample plugin contains a
JUnit-based test. Basing on this information, you can develop your own plugins using similar techniques.
About Intention Actions
IntelliJ IDEA interface analyzes your code and helps you handle the situations that may result in errors. When a possible problem is suspected, IntelliJ IDEA suggests appropriate intention actions, denoted with the special icons. For more information, refer to Intention Actions in IntelliJ IDEA Web Help.
You can view a list of all available intention actions using the Intention List provided by IntelliJ IDEA interface.
To display Intention List
- On the toolbar, click .
The Settings dialog box opens.
- Under IDE Settings, click Intentions.
This displays the list of all intention actions currently available in IntelliJ IDEA. The intention actions are grouped according to the areas of their use.
To enable/disable an intention action, select/clear the check box to its left.