refactor annotation

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


Comment actions Permalink

You need to implement an intention action. See 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.


Please sign in to leave a comment.