26

Is there a way to change keyboard shortcuts in Eclipse to match those in Visual Studio 2010?

I am a C# developer and I am used to Visual Studio shortcuts. I am now using Eclipse to do some Java programming. It is fun, but painful because my brain is hard-wired :).

amadib
  • 868
  • 14
  • 33
BrokeMyLegBiking
  • 5,898
  • 14
  • 51
  • 66

3 Answers3

30

after installing the C/C++ Development Tools (CDT) there should be Visual Studio scheme available (from Windows > Preferences > General > Keys)

more informations (with screenshots) can be found on Configure Eclipse to use VS.Net shortcuts?

I've just tried it using Spring's eclipse distribution (spring source tool suite) and it works

Community
  • 1
  • 1
Emir
  • 1,586
  • 3
  • 16
  • 32
  • Does not work in Eclipse Indigo (8.0.2). Just tried: Installed CDT, Switched to VisualStudio scheme, exported shortcuts to CSV file, switched back to Default scheme, exported shortcuts to CSV file, sorted both files in Excel, compared by BeyondCompare -- verdict: the files are identical. (They were not identical before sorting). Do not want to be negative, but this info may save somebody from hassle of installing CDT. :-) – farfareast Oct 04 '12 at 00:36
  • 1
    Clarification to my previous comment: It *does not work* as I expected. Installing CDT adds many new commands which work in C/C++ source editor and some new commands which work in C/C++ debugger but it does not modify existing command shortcuts in Java such as Debug StepInto(F5), StepOver(F6) - (F11 and F10 in VS). – farfareast Oct 04 '12 at 01:19
  • Unfortunately, the Visual Studio option removes a number of useful Eclipse shortcuts, for example ctrl-shift-F to format a java document. – Brian Leeming Nov 09 '13 at 15:31
  • check out: https://stackoverflow.com/questions/200499/visual-studios-keybindings-for-eclipse solved my problem. I'm using eclipse IDE for Java, but wanted same key bindings as Visual Studio for C#. – J-ho Mar 09 '20 at 08:45
  • On the last comment: it doesn't bring all the bindings like F12(open declaration) or such, so you are on your own in the end to put your favorite bindings there. At least you can do it on pretty much any IDE. Learn one IDE's shortcuts or make your own and bring them to any IDE you use. It's some amount of work, but after it's done you are more productive with the IDE you are using. – J-ho Mar 09 '20 at 08:53
0

should be very easy

  • open preferences (Window->Preferences)
  • type keys in the search box
  • locate General->Keys
  • type the command you want to modify
  • modify the binding
  • type your binding in the search list to make sure no other command is using the same binding

tadaa!

p.s.: a c# ide plugin for eclipse would be great. i'm a java/eclipse rcp developer, but i like c# as language. i haven't done anything serious yet because of visual studio. it feels like some old java ide from the 90's.

Alex_M
  • 1,824
  • 1
  • 14
  • 26
  • 1
    The issue is we need to do the 'tadaa!' for every key stroke needed :( Is there a csv file we could import? – Jersey_Guy May 15 '18 at 16:49
-6

Write a plug-in for Eclipse - it is not too difficult.

user353829
  • 1,244
  • 5
  • 25
  • 38