34

I'm diving into iOS development and I'm using Xcode on a multi-monitor setup.

Obviously I want to take advantage of the multiple monitors to view and edit multiple panes of source code, but I'm having a hard time figuring out how to enable vertical split views. In other IDEs, it's just an option you click in the "Window" menu.

How do I enable vertical split views in Xcode?

4
  • :) actually, i would hope any person writing code is taking advantage of multiple monitors, considering how inexpensive it is to have these days. Commented Sep 7, 2010 at 1:20
  • Define "inexpensive"... It's very expensive for me. I certainly can't afford. Commented Sep 7, 2010 at 1:21
  • This also helpful :) stackoverflow.com/questions/146297/… Commented Sep 7, 2010 at 1:28
  • With the 3-finger swipe gesture sliding quickly between screens on my mac I'm happy with one screen. :) I still look for ways to optimize my workflow, but one screen means my productivity doesn't suffer when I work away from home/office. Commented Jan 25, 2018 at 4:08

6 Answers 6

50

Xcode 4

Check out the options in the Navigate file menu item. I like Command+J. Also, while the Editor is active, i.e., you're editing code or your cursor is blinking in the Editor, press Command+Option+,. Or, you can Option-click (or Option+Shift-click) a file in the Navigator. Then, to make more room for editing, I like to press Command+0 to hide the Navigator and, if they're not already hidden, Command+Option+0 to hide the Utilities. Press Command+Enter to go back to the Standard Editor view.

Xcode 3

Hold down alt and click the little tiny box (with a horizontal line through it) in the upper-right-hand corner of the screen. It's underneath the tiny little lock icon.

Sign up to request clarification or add additional context in comments.

3 Comments

Also, in the Editor, Ctrl-Click (right-click) for the context menu and select "Open in assistant editor"
Great tips. Note that, at least as of Xcode 5, you can opt to stack editors horizontally via View > Assistant Editor > ....
"Hold down alt and click the little tiny box" still works in Xcode 15.
12

Xcode 9 for those coming from a search engine:

Click and hold on the Assistant Editor button for an options menu. Choosing "Assistant Editors on Right" will cause the view to be split vertically.

Xcode Assistant Editor options

Comments

9

This has changed in Xcode 12, maybe earlier. All my Option-Clicks go to open second view appearing below rather than size by side. The solution is to go to Views -> Change Editor Orientation

enter image description here

Comments

1

respect to mattdipasquale

  1. Command+J --------Check out the options in the Navigate file menu item

  2. Command+Option+,------editing code or your cursor is blinking in the Editor

  3. Option-click (or Option+Shift-click)------open a file in the Navigator

  4. Command+Enter----------reset

Comments

1

For Xcode 14 you just have to click this icon: enter image description here

Comments

0

Use the dropdown on the split icon to choose between different views

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.