Eclipse: How can I make Ctrl+F11 work no matter which file is being edited?

前端 未结 2 441
野性不改
野性不改 2021-02-14 09:44

Ctrl + F11 is the \"Run\" keyboard shortcut in Eclipse.

But for me, that only works if a Main class is active in the editor. For any of the other 1

相关标签:
2条回答
  • 2021-02-14 10:20

    Check the preferences, Launching section - you may want to switch from "launch selection" to "launch previously launched application".

    0 讨论(0)
  • 2021-02-14 10:39

    You can configure Eclipse to always use the previously launched application: Window → Preferences → Run/Debug → Launching → Always launch the previously launched application. This almost always does what you want.

    0 讨论(0)
提交回复
热议问题