开发者

Xcode open two editor windows with same file

开发者 https://www.devze.com 2022-12-10 16:40 出处:网络
Is it possible to open the same file in tw开发者_JAVA百科o separate windows in Xcode. I can open a file in one window and the same file in the main Xcode editor window, but I wanted two separate fullt

Is it possible to open the same file in tw开发者_JAVA百科o separate windows in Xcode. I can open a file in one window and the same file in the main Xcode editor window, but I wanted two separate fulltime editor windows.


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.


Xcode 5.1 doesn't have the "Open in Separate Editor" menu option mentioned in the accepted answer. By digging through Xcode Preferences, I found hints (under Navigation) that led me to this solution:

Option + Shift + Click on the file in the project navigator. In the popup that appears, the leftmost choice is "Open in a new window".

To remember this, I found it handy to think of it as adding the Shift key to the Option + Click command that opens the file in the assistant editor.

To choose the "Open in a new window" item in the popup, you can either navigate to it via mouse clicks then double-click on it, or use the keyboard: Command + Left Arrow, then Return.


Yes. Right-click the filename in the main XCode window and pick "Open in Separate Editor". Every time you do that, you get a new complete editor window.


CMD + SHIFT + T

This shortcut will "duplicate" your Xcode window and open it so many times as you want.


Alternatively, you can split an Xcode editor window, so you can view multiple parts of one file in a single editor window. Just click the little split window icon above the up and down scroll bar.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号