31

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?

pkamb
  • 33,281
  • 23
  • 160
  • 191
BeachRunnerFred
  • 18,070
  • 35
  • 139
  • 238
  • :) actually, i would hope any person writing code is taking advantage of multiple monitors, considering how inexpensive it is to have these days. – BeachRunnerFred Sep 07 '10 at 01:20
  • Define "inexpensive"... It's very expensive for me. I certainly can't afford. –  Sep 07 '10 at 01:21
  • This also helpful :) http://stackoverflow.com/questions/146297/what-are-those-little-xcode-tips-tricks-you-wish-you-knew-about-2-years-ago – eonil Sep 07 '10 at 01: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. – William T. Mallard Jan 25 '18 at 04:08

6 Answers6

48

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.

ma11hew28
  • 121,420
  • 116
  • 450
  • 651
  • Also, in the Editor, Ctrl-Click (right-click) for the context menu and select "Open in assistant editor" – pstoppani May 30 '13 at 15:34
  • 4
    Great tips. Note that, at least as of Xcode 5, you can opt to stack editors *horizontally* via `View > Assistant Editor > ...`. – mklement0 Oct 03 '13 at 21:48
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

adc
  • 557
  • 4
  • 13
5

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

possen
  • 8,596
  • 2
  • 39
  • 48
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

libai
  • 195
  • 1
  • 2
  • 12
0

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

penduDev
  • 4,743
  • 35
  • 37
0

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

Flavia Cohen
  • 91
  • 1
  • 2