Eclipse keyboard shortcuts anyone?
I happen to be an IntelliJ fan but seeing many of my collegues use eclipse, I decided to give it a try. The experience was really good. I could add have various unrelated projects open in the same navigation bar and work on a single one in the editor. I typically have a few skunkworks sandbox type projects which I work on while commuting (in BART) and I want them readily available. The other thing I really love about Eclipse is the startup time. I load up quite a huge chunk for the WebLogic code but I dont want all the code loaded as soon as a I startup. Eclipse really does this right and Intellij (atleast 5.1) needs improvement here. So far so good.
About Source Control
We use Perforce for source control here at bea and I'm most comfortable with perforce on the command line. I'm a person who follows simple conventions to ease my life (Maybe its because I read http://lifehackers.com ). Every editor I use maps the F9, F10, F11 keys to p4 diff/edit/revert commands. Emacs and Intellij just work and have no issues binding to arbitrary shortcuts. But Eclipse just wont let me do this. I first downloaded the p4 eclipse integration which is a network hog and expects you to use the mouse and right click on the left navigation bar to just edit a damn file. I don't like to use the mouse for every edit/revert or diff so I'm not a fan of this.
Its possible that I missed something but I couldnt find any way to map an external tool command to a keyboard shortcut in Eclipse. Do you know of a way to ease this pain?
Update: I tried Aseem's suggestion and used ContextMenu plugin. It does work well but I still had this itch that I cannot set keyboard shortcuts in eclipse. Srinivasa Segu, another colleague of mine pointed me to https://bugs.eclipse.org/bugs/show_bug.cgi?id=45396 and mentioned that this was requested in earlier releases but hasn't made it into Eclipse 3.3. I wish this is made available and I guess I'm not the only one having this problem.
About Source Control
We use Perforce for source control here at bea and I'm most comfortable with perforce on the command line. I'm a person who follows simple conventions to ease my life (Maybe its because I read http://lifehackers.com ). Every editor I use maps the F9, F10, F11 keys to p4 diff/edit/revert commands. Emacs and Intellij just work and have no issues binding to arbitrary shortcuts. But Eclipse just wont let me do this. I first downloaded the p4 eclipse integration which is a network hog and expects you to use the mouse and right click on the left navigation bar to just edit a damn file. I don't like to use the mouse for every edit/revert or diff so I'm not a fan of this.
Its possible that I missed something but I couldnt find any way to map an external tool command to a keyboard shortcut in Eclipse. Do you know of a way to ease this pain?
Update: I tried Aseem's suggestion and used ContextMenu plugin. It does work well but I still had this itch that I cannot set keyboard shortcuts in eclipse. Srinivasa Segu, another colleague of mine pointed me to https://bugs.eclipse.org/bugs/show_bug.cgi?id=45396 and mentioned that this was requested in earlier releases but hasn't made it into Eclipse 3.3. I wish this is made available and I guess I'm not the only one having this problem.
Labels: eclipse


4 Comments:
Here is a suggestion for the perforce problem: ContextMenuPlugin
http://www.geocities.com/richard_hoefter/ContextMenuPlugin/
With this plug-in, you would get the same context menu that you would have seen had you right clicked on the file in the file system. Since P4Win already has perforce commands on context menu (right click menu), you can effectively invoke p4 commands without using p4's eclipse plugin.
Just right click on a type or a file in Eclipse, click "Context Menu", you'd get the context menu from windows. Use the perforce commands there to perform any of the operations.
An alternate strategy is to manually create a list of "external commands", one each for the frequently used p4 commands. You can find them in Run -> External Tools menu
Thanks, Aseem.
I did try the External Tools menu but didnt find a way to set the keyboard shortcuts. I should try the Context Menu plugin.
Hi Nagesh,
You can try Alt+R+E. This will open the external tools menu. Then enter the number of the external command as listed in the menu
Hi Nagesh,
You can type Alt+R+E. This will open the External tools menu. Then type the number of the external command as listed in the menu.
Post a Comment
<< Home