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.
Related
When I'm in Mac OS X, I'm able to switch tabs in my browsers and in TextMate using a Command- keybinding. If I want to go to the first tab, I use Command-1, second tab Command-2, etc.
Is there a key binding in Eclipse based IDEs that will support this same functionality?
While using eclipse on OSX, for switching tabs use the following shortcut
Ctrl + fn + Up Cursor Key for moving towards left tab
Ctrl + fn + Down Cursor Key for moving towards right tab
Here Ctrl is not Command, it is Ctrl just like other OS.
Eclipse doesn't support a tab-index-based navigation. The default editor switch key binding as noted by other responders is CTRL+F6. You can configure this to your liking (Window > Preferences > Keys: Next Editor).
Another way to switch between editors is to use CTRL+E. This presents a dialog with all open editors. You can type in the name of the one in which you are interested. This comes in handy when you have numerous open editor tabs (and Eclipse has hidden tabs it is unable to show).
As far as know the only way to switch between tabs in eclipse is CTRL+F6 and CTRL/PAGEUP, CTRL/PAGEDOWN .
In OsX CTRL become CMD .
If you want to support the OSX based approach for a TabFolder, you will have to implement this yourself. E.g via an installed KeyListener on the tab folder.
If you want to implement this for the editors in the editor area of an Eclipse based IDE, you can do it via a new command with bindings for M1+1 to M1+9... but... please note that M1+1 is usually bound to "quick fix", M1+2 is bound to "quick assist", M1+3 is bound to "quick access", etc... So you will have a conflict...
Eclipse has an MDI structure (Multi Document Interface), so the search panel, the package explorer and the code editor can all be open in one window, but I haven't found a keyboard shortcut for switching between these panels. For example, after I search the code-base, I would love to have a quick shortcut for going back to the code editor.
If I understand your question correct, you are probably looking for Ctrl + F7 and Ctrl + Shift + F7. Other navigational shortcuts can be found in the menu: Window > Navigation.
Not an universal shortcut for going to any panel, but:
Ctrl+Shift+E
allows you to go back to any Editor (although it's still a little heavyweight for quick editor navigation).
And if you want to switch between perspectives its: Crtl + F8 and Ctrl + Shift + F8. You can go to Help > Key Assist... for a full list of shortcuts (this list will change depending on the active editor etc.).
There are two ways to do it.
One is how #VonC did it, in an earlier reply; using CTRL+SHIFT+E which opens a box containing all the panes with their paths.
The other one is to simply use CTRL+E, which will open a pop-up just over your cursor containing the list of panes open. Parse using arrows and ENTER
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.
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.
If I've got my Eclipse windows split vertically, is there any keyboard shortcut to move to the logical left/right editor?
For example, in the image blow, the right editor is selected, and I want to move to the left window:
For those of you who know Vim, I am trying to recreate c-w h and c-w l.
The answer from Csaba_H is right : there is no keyboard shortcut to switch from one editor area to the next. The most you can do through keyboard shortcuts is to switch to "another editor", whatever its area is (left, right, top, bottom... whatever you tiled the area into :p) through the usual shortcuts :
next editor : ctrl + F6
previous editor : ctrl + shift + F6
quick switch editor : ctrl + E
I'll only mention that you can also take a look yourself to all available shortcuts in your Eclipse if you go to Window > preferences and go into the section General > Keys (a shortcut to get there is to use ctrl + shift + L twice).
Personally I did not find such shortcut or option. However, there are some possibilities for switching editors from the keyboard (Ctrl + F6 and Ctrl + Shift + E as general ones, or my favourite "all-in-one" Ctrl + 3 :) ).
Also, if you work mostly two files 'for a long time' (one in left side and one on right side), you can also use the History operations (Alt + ←, Alt + →) for switching editors.
Eclipse allows for multiple editors to be open at any time, and those editors may be arranged as tabs (default behaviour) or split vertically or horizontally. The information above about available shortcut options is correct and provides the correct functionality in the case of two (only) open editors. Where there are greater than two open editors the shortcuts allow navigation to the 'next' or 'previous' editor. There is no concept of the logical left/right or top/bottom editor.
Just found it!
Ctrl + Page Up and Ctrl + Page Down.
It's just Ctrl + Tab and Ctrl + Shift + Tab on my windows! try it.
In all my eclipse usage I've never noticed such a shortcut and I would not expect one to exist. I skimmed though the link provided by Anthony and checked my own copy of eclipse, but none of it looked like what you're looking for.
You can also look through them yourself by going to: Window > Preferences > General > Keys
I'm not sure if there is something in vanilla Eclipse, but you might want to check out "Emacs+" in the Eclipse Marketplace.
From http://www.mulgasoft.com/ :
"Other Window (Ctrl-X O): Navigate to the previous editor window"
It's not perfect, but it will achieve something close to what you want.
You can also split the window with shortcuts as well.
Quick Access Ctrl+3 has been very useful in Eclipse.
Otherwise, I know of two external programs that navigate by dividing the screen into smaller chunks, using only your keyboard.
If you're on Windows, you can use Mouser, which is coded in Autohotkey and based on keynav. If you find the source, remapping the keys is fairly straightforward.
If you're on Linux, keynav is your friend.
sudo apt-get install keynav
You'll have to change the configuration file to use arrow keys. (The default uses vim-like navigation.)
For focusing panels in Eclipse, I average between two-to-three keystrokes.