What is the shortcut for running java application

2019-03-17 22:23发布

问题:

I get used to eclipse and know that ctrl+F9 is used for running java application in eclipse in windows. But now I switch to mac, and find that cmd+F9 is used for debug java application, so what is the short cut for running java application ?

回答1:

Notice, if you keyboard has multimedia functions, such as sound level control, brightness level etc etc. Then a lot of shortcuts using the F keys, such as Cmd+Shift+F11 and Cmd+F11 will not fire the application specific shortcut, but rather the system-wide shortcut.

In that case, you will need to press fn as well, to fire the application specific shortcut. So in this case it would be: Fn+Cmd+Shift+F11



回答2:

Find the short for run: Cmd+Shift+F11

And debug : Cmd+F11



回答3:

Command-Option-XJ works for me.

Pressing Command-Option-X will show a list of options on how you want to run your application.



回答4:

To set your custom shortcut open Eclipse -> Settings -> General -> Keys and search for Run. Scroll down a bit, select Run and set your custom binding in the textbox below. Finally click on apply and your ready to run :)



回答5:

Fn+Cmd+shift+F11 for Run

Fn+Cmd+F11 for Debug run