In one of this year's (2019) WWDC presentations, a speaker briefly demonstrated dragging an editor pane around in a window to reorganise the panes he had open. A thin blue line appears when you're hovering between other editor panes to show you where the pane you're dragging will land. (He did one or two similar actions but didn't reveal how he was doing it.) I can't find anything in the Xcode "help", or online (yet). There are a few posts on reddit regarding Xcode shortcuts but I didn't see any reference to this. Does anyone remember how to do this?
Actually the feature I was trying to learn about is called the Destination Chooser. For split pane viewing, to show Xcode 11 where to place the file you want to open, first hold down Option + Shift before clicking on the filename. A blue overlay will appear that can be moved around to the sides of existing open editor panes using the cursor or the arrow keys. When you've reached your destination, just press Enter.
You can see a demo in the What's New in Xcode 11 WWDC video from about 5m5s
Related
Xcode 12 is annoying me. In the storyboard I want to display the assistant editor below the storyboard but Xcodes sometimes stucks the editor to the right side.
Changing the menu option "Change Editor Orientation" seems to reflect the whole editor position but not the position of the assistant editor itself.
Even the orientation is set to vertical, sometimes the assistant editor goes to the right side, sometimes below.
So as I mentioned above that's what I want, I want to force Xcode to show the assistant always on the bottom side. But it always stucks onn the vertical, right position.
Even if a new editor with horizontal oriantation is opened, the position of the assitant editor won't change.
Also the layout pane is always greyed out and stuck in automatic despite I don't use the focused editor:
You can change its orientation By shortcut key
Press Option Key and hover on the editor icon.
This will give the below output.
Okay, for all desperates Xcode beginners: The Layout Panel becomes active if the assistant editor is opened regardeless the orientation:
Choosing the right or bottom changes the position of the assistant editor immediality.
After a few months of not writing any iOS code I upgraded to XCode 8.1 and opened a project. Strangely I am seeing two windows (see pasted image below). Annoyingly these two screens move in sync, show the same file, etc, but one cannot be closed. There is no 'X' at the top to close the window. Has anyone run into this and how can I get rid of one of the screens?
Probably you activated the version editor without noticing it. To revert to the standard editor, hit the button on the top right corner of the window with a drawing showing lines justified to the left (right next to a button with two circles and another with arrows).
Alternatively go to the menu:
View -> Standard Editor -> Show Standard Editor
or hit the Command + Return keys.
That should do it.
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.
I have taken to participating in mouseless Monday's and Friday's. I have set my windows float and dock tabs to hotkeys that allow me to pull them out or put them back in; however, I want to be able to choose which location to put the tabbed document in. I operate in landscape mode so I regularly have a bottom and a top window in visual studio. I would like to press a hotkey and send the selected document to that part of the diamond guide. Anyone know a plugin or how I can do this?
There's an entire article dedicated to navigating the IDE using just the keyboard, with a section on docking windows and tabs using the diamond guide from the keyboard. So yes, it is possible, and you don't need a plugin for it:
To move and dock tool windows from the keyboard
Navigate to the tool window you intend to move and give it focus.
On the Window menu, click Dockable.
Press ALT + Space and then choose Move.
The docking guide diamond appears.
Use the ARROW keys to move the window to a new location.
The mouse pointer moves with the window as you use the ARROW keys.
When you have reached the new location, use the ARROW keys to move the mouse pointer over the correct portion of the guide diamond.
An outline of the tool window appears in the new docking location.
Press ENTER.
The tool window snaps into place at the new docking location.
Alternatively, you can cheat by simply controlling the mouse pointer with the keyboard, through a nifty system accessibility feature called MouseKeys.
With a 14" LCD monitor (1366x768), my VS2010 can only display 21 lines in code editor. There are too many tool bars occupied upper and bottom part (see below screenshot). When writing codes, it's OK to use fullscreen mode. However, when reading codes, I need some of the toolbar like the bookmark bar, open file tab. Is there any suggestion to increase the viewing area?
Create a single custom toolbar with just the commands you really use in it. Remove the other toolbars. Close tool windows docked at the bottom.
There is an addon that can even remove the menu bar – you'll need to learn keyboard shortcuts (this is a good idea anyway: moving a hand to/from the mouse is much slower).
Increase secreen resolution
Use a different font such as Terminal or Consolas. I guess you must be already using Consolas, try Terminal.
Decrease the font size.
Turn monitor by 90 degree, so it is higher not wider.
Besides that - get a decent monitor. 14" is barely legal acording to some european laws for office use. Programmers tyically get a lot bigger.
Customize your toolbars and get rid of the buttons you don't use. You'll probably be able to fit everything on one row after that.
For example, I don't think I have used the toolbar buttons for cut/copy/paste, using the keyboard instead, so those were the first buttons I removed.
On the right side of each toolbar, there is a button with an arrow, click on that and you should see "customize this toolbar" in the drop-down menu.
Well, if you are having an older notebook, you might not able to change your display, increase your screen resolution or turn the monitor by 90 degrees, like the others suggested. Here are my suggestions for when this is the case:
Place your toolbars left or right instead at the top or bottom
close output window
use fullscreen mode and learn keyboard shortcuts for bookmarks and file menu functions, so you can work without the specfic toolbars
I use Full Screen mode (ALT+SHIFT+ENTER to toggle) when doing the actual editing, with only the solution explorer open on the right hand side.