(By way of background I have been helping a local blind child learn coding. He's switching schools from a Windows based school to a Mac based school so I am trying to familiarise myself with VoiceOver on the Mac.)
Using just the keyboard (and with VoiceOver running) how do I switch focus between Xcode's main editing area, the project navigator, the issues navigator, and the scroll bar overview (we sometimes end up in the last one by accident!)
The shortcuts you are looking for are the following
The project navigator is: ⌘+1 (Cmd-1)
The issues navigator is: ⌘+5 (Cmd-5)
Main Editing area is (once you have selected a file in the issues or
project navigator):
⌘+J (Cmd-J) and, after
release, ↵ (Return) or
⌥+⌘+` (Opt-Cmd-`)
The Mini Map: ⌃+⌘+⇧+M (Ctrl-Cmd-Shft-M)
Hope that helps.
Related
I feel like I have read every link on Google pertaining to this question, but none that I have read have helped.
All I want to do is view my Storyboard layout on the left monitor, and on my right monitor, in a new window, have the Assistant Editor open to "Preview" for my Storyboard so that I can preview the different devices sizes (clicking different storyboard views on the left screen should update the assistant editor preview on the right). This seems so simple, but has not proved to be.
Please tell me this is possible.
EDIT: This guy seems to have it working but following the steps didn't work for me.
It's possible.. and it's awesome:
I do have this working after following the instructions linked in the OP. I think the author left out that you need to click on the view controller that you're editing in BOTH instances of the story board window to see the changes update. Then as you're editing on your main window the changes will update to the open storyboard and thus the preview will update as well. I was able to test this and achieved a somewhat desired result.
In case the link goes dead here are the instructions lined out
Here’s how you can set this up…
In the Project Navigator pane, single-click a storyboard/XIB file to open it in the main Xcode window.
Now double-click that same file to open it in a new window.
Move the new window to another monitor and maximize it
(So now you have the story board on 2 windows)
Click on the new window to make sure it has input focus, then type Option+Command+Enter to open an assistant editor in that window.
In the assistant editor’s jump bar click on ‘Automatic‘ to open the drop-down menu (see the screenshot below if you don’t know what this means).
Click on the ‘Preview‘ menu item to open the preview editor.
Click and hold next to the assistant editor’s jump bar, then drag up or left (depending on which editor layout you prefer; vertical or horizontal), to maximize the preview’s screen real estate.
Lastly... the part the author left out is that you need to select the view controller you want to edit in BOTH story board windows and then just drag the preview window to cover more of the screen.
It's not pretty but it's effective.
Edit: wording and grammar :)
This is not currently possible (Xcode 6.3.1 at the time of writing). The best you can do is open your storyboard in one window, open it again in a new window, open the preview, and slide the assistant editor as far left as possible. The preview won't take up the entire window, but it'll be pretty close.
Upon hitting a break point in XCode it switches the left most panel to the Debug Navigator. If I then stop debugging the panel maintains the Debug view and contains the text...
No Debug Session
Then I like to manually switch the panel back to the Project Navigator in order to carry on developing.
Is there a way of configuring XCode such that it automatically switches to the panel layout it had when I started debugging the app?
In Xcode, go to Xcode -> Behaviors -> Edit Behaviors. Select Running | Pauses in the left section of the dialog. In the main section, choose Show Project Navigator.
The Behaviors feature in Xcode is quite powerful for customizing the workflow. I actually like to have separate tabs for editing code, building and running. You can configure the behaviors to switch to the appropriate tab (which is configured to your liking) whenever you build or run the app. Really useful. I think I've learned about it from one of the older WWDC videos about the efficient use of Xcode.
Is it possible to have one assistant editor (on my second monitor for example) which always shows the counterpart to the file which I am currently editing (on my first monitor)?
I can create a new tab, drag it out into its own window and show the assistant editor but of course it doesn't show the counterpart to the file I am editing on my primary window/monitor.
Is there any way to make it do this?
No there isn't. But you can always send feedback to apple regarding what you'd like to see in future updates. If this request comes from many devs, maybe there is a chance to see it added to xcode.
Agreed. With the focus on multi-monitor support this is a feature that has been missing.
In Xcode 7.3, I just double click a file in the Project Navigator view and a new editor window with the file is opened.
Basically I am supposed to press Command + the [`~] button that is above the Tab.
This question has been answered twice here:
Tabbing between Xcode projects?
and
Navigate Between Projects in XCode 4.0
But it just wont work for me, has anything changed in the xcode versions? or the way the mac behaves?
When I press this combination all I hear is the "invalid" sound.
I am using the newest Mac OS mountain lion.
Sorry if this belong to the super user stack overflow I just figured more Xcode users would be found here.
I can do the swipe on the mouse pad to bring the screen where I see all the active windows for the current application... but this is much slower than just tabbing between the 2 projects I'm usually working with.
Thanks
Do I infer from your comment about using the three finger swipe (for Mission Control) that the second window is not on the same desktop as the other windows? The command+` sequence only jumps between windows on the same desktop, not between different desktops (which is not to be confused with two physical monitors, which you can jump between, if you have multiple monitors hooked up to your computer).
The inability of command+` to not jump between desktops is a little curious, because command+tab, which jumps between apps, does go across desktops. If you want to jump between desktops, you can press control+1 or control+2 to jump to desktop 1 or 2, respectively. It should be noted, though, that while that might be a good alternative when trying to jump between your two desktops, though it admittedly selects the last active window in that other desktop, not necessarily a window from your current app in that other desktop. Also control+left and control+right let you jump between desktops, too.
This is a Mac OS "feature", not an Xcode issue, I believe. The command+` ability to jump between windows (but not windows across Mission Control desktops) is the same behavior across the Mac OS.
Update:
If this keyboard shortcut is not working at all, in any app, even within a single Mission Control desktop, then you don't need to worry about Xcode settings, but rather focus your attention on the keyboard settings:
You might want to look at your "Move focus to the next window" keyboard shortcut. There have been reported problems of people with international keyboards not getting this to work properly, but by clicking on (and thereby selecting) the command+` graphic, you can try using different keyboard shortcut, and see if that does it for you.
I have mountain lion as far as i know.
How about this?
control + down
You'll get the current application windows.
Below them there should be a horizontal list of recent projects for Xcode (both opened and closed). With arrows left or right choose the project (it should be highlighted with blue) and press enter.
When I'm working at home I plug my MacBook in to my 20" monitor as a second (right side) monitor. I do all my editing in Xcode on the larger monitor, and leave the menu bar, debugging and documentation on the laptop's monitor.
The problem is when I disconnect from the second monitor and want to work on code in "laptop" mode. Now, whenever I open a file for editing, it shows up almost entirely off the screen and I have to drag it over to edit it. I understand (sort of) why this is happening, since I last had it open in a different monitor. What I'd like to do is reset the window positions in Xcode so the edit windows show up completely on the laptop monitor. Any ideas on how to do this?
I'd even be willing to nuke entries out of the preferences (or set up an applescript to do it) but the xcode plist is inscrutable to me.
Right click the project in finder, select show package contents, and delete the two username.* files. Its not automated... but it works.
Additionally if your using some kind of version control system you probably want to add username.* to your ignore pattern.