Reputation: 83
Is it possible to bind more than one keyboard shortcut for the same function in Eclipse? In Netbeans, I can add alternative keyboard shortcuts. For example, the image shows that pressing either ctrl+numpad1 or ctrl+alt+numpad1 will trigger the Projects command: https://ibb.co/itrKFT
Upvotes: 7
Views: 1081
Reputation: 1
For those who prefer VSC, Visual Studio Code, and other IDE's with select your entire line, the best I have managed on Ecclipse is settings:
LINE START = " ctrl + ; "
SELECT LINE END = " ctrl + L "
This creates something as close to VSC as I could manage with the two keys to create the action next to each other near ' ctrl + L ' which is the vsc command. Very surprised Eclipse does not have this feature.
Also tried setting SELECT LINE END and SELECT LINE HOME to the same key hoping it would execute both commands at once and select the whole line. No luck! Was looking forward to using eclipse but just have spent couple thousand hours in vsc which i love. If anyone finds a workaround, please let us know.
Upvotes: 0
Reputation: 311
Go
Window->Preferences->General->Keys
then select the command you would like to define your new key for (type it into the filter input field). Then press the "Copy Command" button. This will create a new command for which you can create a new keybinding.
Upvotes: 11