Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode - cycle through previously opened documents

Tags:

xcode

I would like to have ctrl-tab behavior in Xcode (4.6, if that's relevant)-- is that available?

I do NOT mean behavior described as in the answer to this question: Xcode - cycle through open windows That is, cmd-` is not what I want to do, because I don't want to use multiple windows.

I mean, I want the editor to behave like Visual Studio or Netbeans, and be able to cycle through the files that I've opened in the same real estate. I don't like having a cloud of windows to navigate through. Is this possible, or is this idiom just not something in Xcode at all?

like image 689
mmr Avatar asked Jun 20 '13 18:06

mmr


4 Answers

You can use control-2 to bring up the history menu, then up and down to select the file you want. Then control-3 to move forward.

like image 102
Patrick Tescher Avatar answered Oct 21 '22 01:10

Patrick Tescher


One approach is to use more tabs. In the General tab of Xcode's Preferences (as of Xcode 4.6.3), set “Double Click Navigation” to “Use Separate Tab”:

navigation preferences

Then, when you open files by double-clicking them, they will open in new tabs. You can navigate between tabs by typing ⌘ { and ⌘ } (command-shift-left bracket and command-shift-right bracket). You can rebind the “Select Next Tab” and “Select Previous Tab” commands in the Key Bindings preferences if you want to use other keys.

like image 20
rob mayoff Avatar answered Oct 21 '22 00:10

rob mayoff


Try ctrl + cmd + left Arrow/right Arrow

like image 26
Kaisp Avatar answered Oct 20 '22 23:10

Kaisp


I think what you want is the following:

Xcode Screenshot

Sorry for using Xcode 5 here, but I think that might be more future-proof and it's the same in Xcode 4.X.
As far as I know there is no shortcut for that behavior but - as in any web view - you can swipe with your finger (1 finger on the Magic Mouse, 2 finger on the Trackpad).

like image 24
HAS Avatar answered Oct 21 '22 01:10

HAS