refactor annotation
Hi,
Is there any way to create annotations in my custom language, that could be a refactor as in Java?
The idea is the same that for example the "remove braces" or "convert to if/else" dialogs.
I know the info/warning/error annotations but I neither want to put a message nor the a yellow/red bulb
thanks
Please sign in to leave a comment.
You need to implement an intention action. See https://github.com/JetBrains/intellij-community/tree/master/samples/conditionalOperatorConvertor for a sample plugin that adds an intention action. You can find many other examples of intention actions in the IntelliJ IDEA Community Edition source code.
Thanks!!!!!