Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why are refactoring shortcuts in eclipse missing on mac os?

I'm using Eclipse 3.6.1 on Mac Os.

In an earlier Version of Eclipse I hat a lot of nice refactoring shortcuts like:

  • Command + Alt + M extract method

  • Command + Alt + I inline

Lately if I press Command + Alt + M; I insert µ instead of extracting a method and Command + Alt + I; inserts ^. The shortcuts are also not shown in the refactoring menu anymore.

Those missing shortcuts really slow me down. I think the shortcuts are not shown/active because the native Mac OS shortcuts take precedence.

How can I re enable those shortcuts?

UPDATE

I just installed Eclipse Indigo and the Shortcuts are missing again. I use them all the time and replacing code with µ all the time is very very annoying.

Has anybody encountered this problem as well?

like image 915
Janusz Avatar asked Feb 14 '11 11:02

Janusz


1 Answers

In general, you can use the Command + Shift + L shortcut in any given editor to see a list of available keyboard shortcut... and a second Command + Shift + L will display a popup with all possible shortcuts in your Eclipse (can be filtered for "extract method" for example).

That would at least allow you to see the current shortcut for any given action.

like image 70
Kellindil Avatar answered Sep 17 '22 11:09

Kellindil