Search code examples
javalinuxintellij-ideaprogram-entry-pointshortcut

Run actual main window java Intellij Shortcut


How to run actual window main shortcut on Intellij for java? I have multiples main on my program, but i only want execute actual main when i press:

alt + shift + F10

When i press alt shift f10


Solution

  • Shift+F10 will run the currently selected run configuration.

    There is no way to assign a keyboard shortcut to the specific run configuration in IntelliJ IDEA directly, but you can try a plug-in.