11

In most multi-document editors for windowing environments, Control-TAB will utilize an MRU list to bring the user back to the last visible file. What is the appropriate command to accomplish this in Xcode 3.x?

I currently have Ctrl-TAB mapped to "View|Previous File", however this does not appear to be an MRU. Worse yet, if it hits the "beginning" of the list (should be a circular buffer), it falls back on inserting an actual TAB character into the text editor.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Will Bradley
  • 1,733
  • 15
  • 27

3 Answers3

2

As of Xcode Version 3, there isn't anything that's exactly like the MRU you describe - however, check out the discussion on this page for some options that will get you closer to the behavior you want.

blueberryfields
  • 45,910
  • 28
  • 89
  • 168
2

In recent XCode (10.3), when in a code editor press:

ctrl+1, right, right

Then use up and down keys and enter to select from the MRU sorted list of recent files.

There is even an option to increase the size of the history.

Peter Lamberg
  • 8,151
  • 3
  • 55
  • 69
  • So this functionality does exist in xCode. Someone experienced with the autohotkey equivalents in mac could write a macro so that ctrl+tab could simulate this behavior in xcode. – kwaalaateimaa Jan 31 '22 at 06:37
0

In Xcode 3 (or any Mac application) you can use Command-Tilde (⌘~) to switch between open windows.

In Xcode 4 you use ⌘} for next tab and ⌘{ for previous tab - command shift bracket.

As a side note, for some reason Xcode 4 won't let me set the key binding for previous/next tab to the standard Control-Tab. When I try it puts in Command-Control-Tab.

Anthony F
  • 6,096
  • 4
  • 31
  • 32
  • Thanks for the answer, Anthony. In my question I'm asking specifically about Control-TAB, (in window document/buffer switching) behavior. Command-Tilde (⌘~) is quite useful for other purposes, though, I agree! – Will Bradley Apr 20 '11 at 18:17
  • Perhaps I don't understand what you're asking. Are you talking about how XCode allows you to navigate forward/backward document history in a single document window like a browser? (Command-Option-LeftArrow and Command-Option-RightArrow) – Anthony F May 16 '11 at 22:12
  • Yes, except that functionality handles cursor navigation as well as document navigation. The standard Ctrl-TAB behavior in well-written MDI Windows applications is that Ctrl-TAB behaves like an MRU on documents, or tabbed windows. I'm looking for that behavior, not cursor movement. – Will Bradley May 24 '11 at 18:02
  • Then to answer your question, there is no such behavior or command in Xcode3. – Anthony F May 31 '11 at 21:57