Why are refactoring shortcuts in eclipse missing on mac os? - eclipse

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?

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.

If you go in Preferences... -> General -> Keys, search for the description of the action that doesn't work in the list. Once selected, look whether there's a conflict (in the conflict list below). There's a chance there's a conflicting shortcut set up for another action (possibly by another plugin).
Once you've identified the other conflicting action, look for it in the list: you can then either unbind it completely or change it scope (in the When drop-down list) to restrict it to a particular plugin for example.

Do you use Aptana plugin, or any other plugins? In my case I was able to bring shortcuts back by uninstalling Aptana.

I just did a clean install of the 64bit version of Eclipse and the shortcuts reappeared.

Related

VSCode Command Palette (Ctrl + Shift + P) keyboard shortcut isn't working on new installation

When I press Ctrl + Shift + P in VSCode (shortcut for "Command Palette") nothing happens.
Side note: I've just installed VSCode on my new PC (Windows 10,) so it's a fresh installation if that helps (it works on my laptop.) This is unsettling since I can actually see Ctrl + Shift + P listed in the bindings table.
It's important! Since for the most part I use this command to habitually open files.
Now I understand it can be possibly caused by some other software, perhaps -- I'm looking into that (will post what I find, if I ever get it to work.)
If I can't figure it out, I'm simply going to rewire it (at least for now) in key bindings but it's not really what I want to do.
Meanwhile, is there any classic cases that can jam Command Palette, specific to new installation?
This is an actual issue on GitHub There is a good chance it's caused by other software which may be something like:
Password keychains
Screen capture
OBS
(Check any similar software you might use I can almost guarantee that one of the other apps is intercepting it globally. You said it's a new installation, so you probably installed other apps.)
To see all shortcuts or rebind Ctrl + S, then K as per this edit keyboard shortcuts tutorial. Make sure Ctrl+Shift+P is on this list. Another issue that could cause this is your VSCode json settings file is read only or doesn't exist for some reason. A lot less likely, but still worth checking. Good luck with this.
Razer Cortex after the last update started to intercept Ctrl + Shift + P and other keybindings. I've turned it off and it helps, but you can try to change those keybindings in the Cortex settings if that's what causing the problem in your case.
it would be "ctrl + k + s" to see the command list, and yes F1 is the alternative to "Ctrl+shift+P" I also have Razer mouse and it seems to conflict.
For Mac Users
In Mac had the same problem and realized that it occures after triggering Git Lense extention. A quick inspection on key bindings and disabling the non-default binding there solved the problem.
For me, TickTick on the Mac had overtaken the Command+Shift+P. I disabled it in TickTick -> More -> Hotkeys and removing the global shortcut.
A more general way to remove conflicting shortcuts on MacOS:
choose Apple menu > System settings, then click Keyboard in the sidebar. (You may need to scroll down.)
Click Keyboard Shortcuts on the right. A warning icon appears next to conflicting keyboard shortcuts. Double-click the shortcut, then change it.

Adding Alt + Space shortcut in Eclipse

I am using win7 and eclipse with Aptana plugin for trying some examples on Ruby. But I can't figure out how to add Alt + Space as a shortcut in Eclipse (I want to add it to complete already defined variables). The issue is that when I try to add that combination (Eclipse reads the keys clicked) and the menu window appears in the top left -> it is shown when you hit the Alt key.
Does anyone has a hint how to add the shortcut?
I found similar post, but don't know how and where to add the code there.
Autohotkey, remap Left Alt + Space to Control + Escape
In Eclipse, the code-completion shortcut is Ctrl+Space (it's called Content Assist in Eclipse lingo). Is that what you're looking for?
I'm pretty sure it can be mapped to a different keyboard combination. Open Preferences and navigate to General > Keys and then search for the Content Assist command to re-map.

How do i use eclipse efficiently by making maximum use of keyboard

I mean to say which and all shortcuts from key board is available while working on eclipse?
like how Ctrl+F11 is for run project like that.
Effective Eclipse: Shortcut keys
Useful Eclipse Shortcut Keys
10 Eclipse Navigation Shortcuts Every Java Programmer Should Know
You can define your own:
FAQ How do I provide a keyboard shortcut for my action?
Provider by MatrixFrog in comments below:
Hidden features of Eclipse
Press ctrl + shift + l it will open shortcut key menu.
Note:-
Beside this also some other short cut will available. If you tell us functionality you wanna access we can tell you the short cut for it.

shortcut for 'update to HEAD'

is there any way to have either
shortcut or
icon
for svn Update to HEAD of one project (not all of them) in eclipse? It would make my life much much easier.
I have few php projects though. Time to time I click 'commit' by accident.
Running Eclipse for PHP Developers - Helios release - on OS X.
I'm posting this to help anyone interested since I got a lot of grief before figuring this out..
You have to go to Settings > General > Keys and bind the shortcuts as the others have said.
I have:
Commit: Ctrl + Alt + C
Update to HEAD: Ctrl + Alt + U
Synchronize with Repository: Ctrl + Alt + S, all "In Windows"
But, in order for the shortcuts to work, you must go to Window dropdown menu > Customize Perspective > Command Groups Availability and there check the SVN box.
With this option you also get a dropdown menu called SVN with all the relevant commands.
Selecting the file/package/project/working set and pressing the keys does its magic.
In preferences go to Bindings
Sort by category
Find SVN
Assign a shortcut to "Update"
Mine is Ctrl + U
Go to preferences and type "Bindings" in the search at the top and play around with that. You can't bind a button to it, but you might be able to bind a key to do what you want.

what's the keyboard shortcut to toggle breakpoint in pydev using eclipse

I think I'm missing the elephant in the room but for the life of me I can't find the keyboard shortcut to setting a breakpoint in eclipse when using the pydev plugin.
Things that I've already tried:
Ctrl + Shift + B: does nothing.
Ctrl + F10: brings up the breakpoint context menu where you can select to add breakpoint, remove etc... I don't want to have to scroll through a menu every time I want to use a keyboard shortcut.. .kinda defeats the purpose of a shortcut.
Clicking on the strip on the left hand side of the code: this is the only way that I'm setting it atm, but I'm rather avoid using the mouse if I can.
I'm using pydev 1.6.1 on eclipse 3.6
EDIT (31/08): In light of the two answers by codedevour and Tao, I've tried editing the shortcut but have had no luck with the new shortcut Ctrl + Shift + Alt + B either. Other shortcuts work. I've also tried changing the "When" drop down from In Windows to 'Pydev editor scope' with no effects.
From what the editor is telling me, there is no conflicts with the breakpoint shortcut.
This is a fresh install on two machines, both windows 7 and it's happened on both machines.
Finally found it!
The answer is here:
http://www.mail-archive.com/pydev-users#lists.sourceforge.net/msg04234.html
In short, shortcuts are not set for all perspectives of eclipse.
Whilst in the pydev perspective, go to Window > Customize perspective > Command Groups Availability > Check breakpoints.
That's it!
I was using the pydev perspective (which is what it switches to when you first create a pydev project) however, breakpoint shortcuts are only available in the debug perspective by default so you need to turn the shortcut on... wow that was so NOT obvious!
Ctrl + Shift + B
If this refuses to work, have a look at Window > Preferences > General > Keys and look for overlayed keys which may shadow this shortcut.
Ctrl + Shift + B works for me and I am using pydev 1.6.1 with eclipse 3.6.
Perhaps, you have a conflict with another program? Try change it under menu Window > Preference > General > Keys > Toggle Breakpoint to another keyboard shortcut.
On recent pydev versions:
Go to Window > Perspective > customize perspective...
And in tab "Action Set Availability", check "Breakpoints"