How to provide actions for Alt + Enter functionality?

Hi,

In the editor, you can press Alt + Enter over a symbol and it will give some suggested actions in a popup menu (what is the official name of this?)

I'm working on a JavaScript plugin and would like to provide my own actions in that menu instead, is that possible?

评论操作 固定链接

Hi, Chris.

For writing actions that may be accessed after pressing Ctrl+Enter you should use IntentionAction and IntentionManager classes.
Community version of IDEA contains a lot of examples how to implement this interface

0
评论操作 固定链接

Denys Dushyn Interesting. Could you point  to a sample file or guide? (link)

 

0

请先登录再写评论。