With ctrl + w you can close a "tab" in eclipse, like in most modern browsers. So, is there an equivalent to ctrl + shift + t (in Firefox) to bring back a recently closed tab?
If not, is it possible to recreate something like that in a custom profile?
Related
I have an eclipse window with two tabs open side by side so that I can see the text of both files simultaneously. Is there a keyboard shortcut that allows me to switch which window I am editing?
I usually use Ctrl + F6, it will pop-up a small context menu were with all editors and windows, by default it switch you to the next editor in the list. And
Ctrl + Shift +F6 goes to the previous editor in the list.
It's not exactly what you asked for, but i cannot found simple shortcut for switching windows. You can read this article for more info
You can also create your own perspectives (Window --> Save Perspective As...) and easily switch between them:
Ctrl + F8 Next perspective
Ctrl + Shift + F8 Previous perspective
I am wondering if there is any way to have a keyboard shortcut to a tab. Like for example Firefox having Alt+1 / Alt+2 / Alt+3 to go to tab 1 / 2/ 3 etc...
Cheers,
You can use F12 to go to the current editor and Ctrl + E to get a list of open editors. Then you can type a couple of characters to narrow down the list. The currently visible tabs are at the end of the list (use End or Up to jump there)
Ctrl + PageUp and Ctrl + PageDown select the previous and the next tab.
Ctrl + Q goes to the last edit position.
Alt + Left and Alt + Right go back- and forward through your editing history (like the back button in your browser).
Also, use Alt+PgUp and Alt+PgDown to shift between graphical layout and xml code inside android graphical layout editor for xml files.
for right side move CTRL+ page Down
for left side move CTRL+page Up
Using CTRL+F7 to navigate between two currently used views back and forth (kinda ALT+TAB in Windows).
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.
This may be a basic question, but I'm still looking for the answer.
I've been using Eclipse IDE for a long time and I know the shortcut ket Ctrl + Shift + R which will open the resources dialog box. Recently I switched to RAD 6.0 IDE (as per project need), and I could not use the shortcut Ctrl + Shift + R in RAD 6.0. The shortcut Ctrl + Shift + L which lists all the keyboard shortcuts, is also not working in my RAD 6.0.
I want to know whether RAD 6.0 does not support these shortcuts keys or is there any other shortcut available for opening a resource in RAD 6.0?
EDIT: When I open the Java browsing perspective, the shortcut key Ctrl + Shift + R is working fine. But it's not working in the Java/J2EE perspecting. Any ideas on how to enable this shortcut key in all the perspectives?
Right click on the toolbar, select Customise Perspective and make sure 'Open Resource' is checked.
I was wondering if it were possible in Eclipse PDT to reopen a closed tab by mistake.
For example in Firefox I can do Ctrl + Shift + T.
Try Alt + ← that will go backward in history - if tab is closed it will reopen it.
Yes it's possible. Close a tab and hit the left yellow arrow in the Eclipse menu bar above.
You can adjust the keyboard shortcut for that in the eclipse preferences under General > Keys.
On Mac it's ⌘ + [
Navigating back through the edit history does work sometimes, but not if you close the tab without actually activating it. You can also try Alt + F to access the file menu then hit a number to access the appropriate file in the recent file list.
You may also find the Extended VMM Presentation plugin useful. Among others, it provides a list of the last several closed tabs.
Keep in mind that so far it does not seem to work with the new Eclipse Juno.