Visual Studio's keybindings for Eclipse
Solution 1
How to Install Visual Studio Key Bindings in Eclipse (Helios onwards)
For anyone finding this post, if you need step by step instructions and you're using Eclipse Indigo PDT , the following should help you:
(Note: you will be prompted to restart Eclipse after installing)
- Start Eclipse
- Click Help -> Install New Software
- In the Work with box select or type your version of Eclipse, e.g.:
- for Neon (4.6)
- for Mars (4.5)
- for Luna (4.4)
- for Kepler (4.3)
- for Juno (4.2)
- for Indigo (3.7)
- for Helios (3.6)
- Make sure the 'type filter text' box is blank.
- Wait for a list of names and versions to appear
- Scroll down to find Programming Languages, and expand it
- Locate C/C++ Development Tools and check the box
- Click Next and follow the remaining instructions on screen.
After finishing the install and restarting Eclipse...
- Click Window -> Preferences
- Expand General
- Click Keys
- Change the Scheme drop down to Microsoft Visual Studio
- Click OK
To confirm the update, try pressing CTRL + SHIFT + F and the 'Search' dialogue box should appear.
Solution 2
I think the latest Eclipse ships with Visual Studio bindings but at least the Eclipse PDT doesn't (which I just installed). And I would prefer to not have lots of extra plug-ins in Eclipse to keep it more "slim", so I didn't add the C++ plug-in. (maybe it doesn't affect performance but I really need only the keys...)
So anyway, I added the keys which I needed. As previous posters noted, when you "Export" in the key customization there is no way to import them, so the separate File->Export/Import functionality is the way to go.
So, as summary:
Try add to Eclipse C++ plugin and see if it ships with key bindings that work for you
Use mine key bindings, key list and download here install: unzip, use File->Import->General... to get it to Eclipse
It's far from complete of course (it's only keys which I missed to get started...), but better than nothing anyway.
Update (2009-10-16): Added Ctrl + G (go-to-line) to the bindings.
Solution 3
To get the Visual Studio key bindings in Eclipse you need to install the C++ development plugins - see this.
I downloaded the latest Java development version of Eclipse (version below), when to Help -> Software Updates -> Available Software -> Ganymede and ticked the C++ box. After a restart the Visual Studio key binding appeared in the list.
Eclipse Platform
Version: 3.4.1
Build id: M20080911-1700
Solution 4
I don't have a VS2005 keybinding scheme as I personally prefer a Brief-style scheme.
However, to import "it", as far as I know (at least on Eclipse 3.4 Ganymede) use File -> Import -> General -> Preferences where "it" is a .prf file which has been saved out using File -> Export -> General -> Preferences.
Comments
-
Michal Sznajder almost 2 years
Does anybody have a keybinding scheme similar to VS 2005 available for Eclipse?
How to import it into preferences of Eclipse (I see only export button).
-
Michal Sznajder over 15 yearsIn which build ? I have Eclipse Platform Version: 3.4.0 Build id: I20080617-2000 and no VS bindigs built-in ...
-
JesperE over 15 yearsI haven't checked the build number. Are we really looking in the same place?
-
roufamatic about 14 yearsGift that keeps on giving. This trick worked with Galileo today. Ahhhhhh, ctrl-tab.
-
John K almost 12 yearsThat is beauty to my constitution. Just did it for Indigo - had to add the site to eclipse under Help > Add/Update for CDT at eclipse.org/cdt - then installed CDT Main tools from it. Visual Studio bindings became available under Windows >Prefs > General Keys
-
Yahoo Serious almost 11 yearsOther versions at: download.eclipse.org/releases/kepler (4.3), download.eclipse.org/releases/juno (4.2). Note that these shortcuts only apply to the C++-files, so if you want to navigate/edit a Java project with VS-shortcuts, this is not the solution.
-
Chris almost 11 years@YahooSerious Thanks for the additional versions, I've updated my answer. The rest of your comment is not quite right. The shortcuts do work with other files (not just C++ files) - I use them with PHP files / projects, for example.
-
Chris W almost 11 yearsI really wanted this option. But after setting Visual Studio key bindings scheme and testing it for a while, I rolled back to Eclipse scheme... for 2 reasons: Missing some important VS shortcuts (e.g. F12!) and hidden some important Eclipse shortcuts (e.g. Ctrl+Shift+F, F3). So, imho the best choice is to learn Eclipse shortcuts and add some necessary VS ones.
-
Chris almost 11 years@ZbigniewWiadro you can tweak the key-bindings as you want to by going to Window > Preferences > General > Keys.
-
Chris W almost 11 years@Chris I knew that and by this I ment "add some necessary VS shortcuts". In Eclipse F3 is go to definition/declaration, as I remember.
-
Siderite Zackwehdex over 7 yearsThe file download is not working. Is there an update somewhere?
-
RED SOFT ADAIR over 5 yearsI found something similar: gist.github.com/htsign/…