Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 4 + split screen feature

Tags:

xcode4

Xcode 3 had a very good feature of horizontal and vertical split screen wherein you could have worked on multiple files in the same window. xCode 4 has a split screen feature in the Editor but I think there are two things lacking:

  1. Inability to switch files in the second window through project navigator (left pane).
  2. Cannot split the main screen horizontally.

Any ideas on how this can be achieved? The split feature

Thanks, Raj

like image 923
Raj Pawan Gumdal Avatar asked Mar 31 '11 07:03

Raj Pawan Gumdal


People also ask

How to split screen in Xcode?

With the simulator active, go to the Window menu and choose Tile Window To Right Of Screen, then select Xcode on the left. You can adjust the split so the simulator sits snugly on the right.

How do I open two windows in Xcode?

In XCode 4 you can have a split window via View -> Show Assistent Editor . You can then select the file to display in the main editor by clicking on it, and the file in the assistent editor by holding down alt (or: option ) + click on it.

Why does my split screen not work?

Enable force split-screen To force them to allow split-screen mode: enable developer settings on the phone if it isn't already. open Android's Settings app. enable the System > Developer options > Force activities to be re-sizable option.


2 Answers

First, you can change the layout/placement of the Assistant under the View > Assistant Layout menu. This includes placing all assistant windows in the same "column" as the main editor.

Second, you cannot split the main editor. That's what the assistant is for in Xcode 4.

Third, Assistant windows aren't controlled by the main editor unless they're in one of the automatic modes that base their selection upon the main editor's. The only way to navigate them independently is to use their Jump Bar at the top of each assistant panel.

Update

One tip I just remembered: Option-click a file in navigator to open a file in the assistant; Opt-Shift-Click to be prompted in a popup window where to open the new file (double-click an area to choose it or double-click the + sign to add a new area).

like image 159
Joshua Nozzi Avatar answered Sep 24 '22 17:09

Joshua Nozzi


A bit late in the game, but here is a cool way to open your files in different placement configurations (e.g. new window split, new tab, etc.):

Key-combination:

Shift + Command + Option + ,

The above allows you to choose between multiple layouts. Click on the + signs to extend the layout shown on the screen.

like image 32
Milad M Avatar answered Sep 23 '22 17:09

Milad M