6

I went into Window->Preferences->General->Keys in Eclipse to map Ctrl+Tab to "Previous Editor". At first it worked just like Visual Studio's Ctrl+Tab..I can switch the last file I was editing. Now, for some reason, Eclipse will not switch to the previous file after I release the Ctrl key. Instead, I have to press Enter after releasing the Ctrl key. It's very annoying.

Does anyone know how I can have Eclipse switch to the previous file by just pressing Ctrl+Tab?

Thanks

Chandrayya G K
  • 8,719
  • 5
  • 40
  • 68
User1
  • 39,458
  • 69
  • 187
  • 265

6 Answers6

13

You're looking for this: Eclipse's Visual Studio Ctrl+Tab and Ctrl+Shift+Tab Equivalent.

By pressing Ctrl+F6 you get the behaviour (I think) you're looking for. On Window->Preferences->General->Keys you could switch the key binding to Ctrl+Tab.

Community
  • 1
  • 1
AxeEffect
  • 6,345
  • 4
  • 37
  • 33
5

Go to the .metadata directory in the workspace's folder and open the file org.eclipse.ui.workbench.prefs located in .plugins\org.eclipse.core.runtime\.settings.

You have in it an option named STICKY_CYCLE which must be set to true. Put it to false or simply remove the whole line.

The matching line when exporting the preferences is : /instance/org.eclipse.ui.workbench/STICKY_CYCLE=false

bobito77
  • 51
  • 1
  • 2
2

Eclipse Juno Window Menu/Preferences/General Uncheck "Keep next/previous editor view and prespectives dialog open

fixed for me

Systemsplanet
  • 419
  • 4
  • 8
1

I had this problem too, and found a solution.

However, the problem was not due to Eclipse, but due to my Caps Lock key settings. Therefore this solution might not apply to your problem. Given the frustration I went through to fix this, I would still like to share this with you.

I am using Ubuntu 12.10. In the System Settings, under Keyboard Layout, Options..., I had "Caps Lock key behavior" set to "Make Caps Lock an additional Control but keep the Caps_Lock keysym".

When I changed this to "Default" and changed the "Ctrl key position" to "Caps Lock as Ctrl", the problem in Eclipse was solved.

tijs
  • 11
  • 1
0

Related to @tijs answer, on Xubuntu 20.20 (and possibly other Ubuntu versions), this problem can appear in combination with keyboard layout settings. I solved it as follows:

First, make sure to un-check: Preferences > General > Keep next/previous editor view and prespectives dialog open

Then open system keyboard settings (xfce4-keyboard-settings) Layout > Change layout option

My setting for "Change layout option" was "Both Ctrl together". I changed it to none (-)

Now, the Next/Previous Editor in Eclipse worked correctly with Ctrl+Tab and Ctrl+Shift+Tab, (i.e. not requiring pressing Enter).

foolo
  • 804
  • 12
  • 22
0

If you want to switch tabs using CTRL+TAB key like in chrome Goto Prefrences -> Keys -> search tab -> then in Next Editor entry change shortcut to CTRL+TAB

image

Eric Aya
  • 69,473
  • 35
  • 181
  • 253