Where is the basic Control-TAB (MRU) behavior in Xcode?
Asked Answered
B

3

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.

Brazzaville answered 25/8, 2010 at 5:41 Comment(0)
M
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.

Myrtamyrtaceous answered 8/2, 2011 at 22:50 Comment(2)
Thank you for your response. Unfortunately, this didn't lead me closer to understanding whether there is actual support for an MRU of files in XCode.Brazzaville
Oh, I should have prefixed it with "as of Xcode version 3, no, but"Myrtamyrtaceous
S
3

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.

Slap answered 25/9, 2019 at 10:58 Comment(2)
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.Hyperpituitarism
@Hyperpituitarism I think the problem with asking for this feature is that it has been a point of contention between macOS and Windows users for a long long time. I get the impression that it's one of those things that Apple refuse to consider just for petty, childish reasons. (A bit like the BSOD Finder icon for SMB servers.)Bodi
M
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.

Myrtamyrtaceous answered 8/2, 2011 at 22:50 Comment(2)
Thank you for your response. Unfortunately, this didn't lead me closer to understanding whether there is actual support for an MRU of files in XCode.Brazzaville
Oh, I should have prefixed it with "as of Xcode version 3, no, but"Myrtamyrtaceous
R
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.

Rhapsodize answered 12/4, 2011 at 14:2 Comment(4)
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!Brazzaville
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)Rhapsodize
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.Brazzaville
Then to answer your question, there is no such behavior or command in Xcode3.Rhapsodize

© 2022 - 2024 — McMap. All rights reserved.