Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to customise order of Intentions menu

As of IDEA 2018.2 (macOS), the order in which options in the alt+Enter (Intentions) menu appear has changed. To me, the order is now less logical and relevant to the current context than it was before. Is it possible to change the order?

For example, given a JUnit class MyClassTest in a Java project, hitting alt+Enter on the class name previously gave Run 'MyClassTest' as the first option. That option is now 4th in the menu, and the first is 'Create Subclass', which to me is simply not relevant.

enter image description here

like image 832
james246 Avatar asked Aug 08 '18 12:08

james246


1 Answers

Customizing the order of intention actions is currently not possible in IntelliJ IDEA. There is an open feature request you can vote for:

  • IDEA-88512

Run | Run... would be a better alternative for your specific use case. You can check/change the shortcut for this action here. Or just use the shortcut shown in the intention actions menu to run or debug your tests.

like image 99
CrazyCoder Avatar answered Sep 25 '22 12:09

CrazyCoder