When I fire up the Atom text editor, it has both the left and right pane open. Observe:
But I don't want the right pane to be open.
How can I configure Atom to have the right pane closed by default when I open a project?
You can uncheck the Initial Outline Display package setting:
If you don't know how to find this dialog, click on the package in Settings > Packages or use a package such as package-settings to do so via the command palette.
Related
In earlier versions of Xcode, I could consistently open a file either in the left or right window depending on whether I press alt / option when I click on the file.
In the current version (13.0), depending on which is the currently "active" pane, pressing alt/option and clicking causes a file to be opened in the other pane, meaning sometimes it opens on the right, and other times on the left, depending on which pane was originally active.
Is there a shortcut key, so that I can always open a file in the right pane, or left pane, regardless of which is the active pane ?
Thanks to https://betterprogramming.pub/mastering-the-assistant-editor-in-xcode-11-4c26bdcd673 I have found the way :
Just go to preferences -> Navigation and change the settings to use primary editor instead of focused editor.
In Xcode 10, the toolbar had an inter-locking ring icon which showed the assistant editor, it's missing in Xcode 11.
In Xcode 10, the toolbar had an inter-locking ring icon which showed the assistant editor, it's missing in Xcode 11.
The interface has changed a little, but the functionality is still there. The top right corner of the editor pane has two buttons:
Clicking the left button, which looks like lines of text, displays the popup menu, where you can choose various editor configuration options. Clicking the right button just narrows the existing editor and adds another one next to it.
Some of the same options are also available in the Editor menu in the main menu bar.
Update: This is from the Xcode 11 beta release notes, and perhaps more fully explains why the UI was changed:
Editors can be added to any window without needing the Assistant Editor. Editors are added using the “Add Editor” button in the jump bar or the File > New > Editor command. Each editor can now be in one of three modes: “Editor Only”, “Editor and Assistant” or “Editor and Canvas”. The latter two modes automatically show relevant content when available. When using multiple editors, the View > Editor > Focus command can be used to temporarily expand the active editor to fill the entire window, hiding other editors. For source control support, the Code Review button in the Toolbar replaces the Comparison Editor. The “Show Authors” command is now available from the Source Editor’s Editor menu. The SCM Log is now in the Inspector Area. (43806898)
With multiple editors possible in a window, you need editor-specific controls for showing the ancillary views like the assistant editor, author view, etc.
From SMGreenfield's comment:
Sometimes I want to look at a different part of the same darn document. There has always been a way to do this, but it involved jumping through hoops.
Just add another editor: click the Add Editor button in the upper right corner of the editor, or choose File > New > Editor. The new editor will default to showing the same file you were working on in the existing editor.
If new editors show up on the right of the existing editor and you'd prefer them to stack vertically, you can choose View > Change Editor Orientation. If you want them to stack horizontally most of the time (the default) but just want one to show up below, choose File > New > Editor Below.
Shortcuts :
control + option + command + return : Show Assistant Editor
command + return : Show Editor only (hide Assistant Editor)
Using Editor on the Toolbar
It has moved, to show it click on icon with horizontal lines and select Assistant.
In Xcode 11 we now have multiple editor panes. You can summon a second pane, a third pane, as many as you like.
When you have a second pane, it does not have to be an automatic assistant. In other words, the editor pane itself either is an assistant or it is not. So if it is not, it is manual. And if it is, it is automatic.
To toggle between being an assistant and being an ordinary pane, choose Assistant from the Editor menu:
If Assistant is checked, this is an assistant and is automatic. What it displays depends automatically on some other pane.
If Assistant is unchecked, this is an ordinary editor pane and is manual. You can display anything you like in this editor.
In case you can't use Add Editor button just use shortcut:
Cmd + Ctrl + Shift + Enter
Turn Assistant on by navigating to the following in Xcode 11:-
Xcode > Editor > Assistant
For Xcode 11.2.1
command + option + return
or
Main Menu -> Editor -> Line View
it is worth noting, that you can also open the assistant editor by alt-clicking the file
I have a cat. She likes to sit on my keyboard.
I recently downloaded the Atom Editor, and I love it, but I don't know much about the settings. I just came back to having about 50 instances of Atom opened... bc... #catflife. I had to restart the computer.
Right now my window shows the "Project" pane to the left, and an open file on the right. Normally, I can click on "main.js" and "style.css" , and both files will be open on the right side pane, like tabs.
However, only one file is showing. I would like for the tabs to look like this:
style.css | main.js | anotherfile.php | anotherfile.js
But, let's say I click on "style.css" - it appears on the right side. Then I click on "main.js", and the stylesheet disappears (from the right side) and is replaced with "main.js".
Not sure which setting my cat changed, but how do I change it back to seeing a tab view on the right side?
When you click on a file in Atom, its pane is only ”pending” until you make changes to that file. From then on, a second file will be opened in a new pane. The pending state is indicated by the italic text on the tab.
You can force opening a new file by double-clicking on the file. Or you can disable pending panes in the settings:
Maybe your furry friend disabled/removed the tabs package
File-> Settings -> Packages
search for tabs(v0.110.0) and ensure it is installed and enabled.
Right Click on a file in the project tree. Then click split Left/right.
Say you have File.m showing in the blue area above.
I want File.m to open in a new separate window.
How to do this??
Note that - of course - IF you have the ProjectNavigator showing and IF you can see the filename "File.m", then double-click on the filename and it will open in a new window.
What I want to do is open ANOTHER copy of the "CURRENT" file (the one in the primaryEditor) in a NEW WINDOW - without touching the ProjectNavigator.
Any ideas? Cheers
Note that ... (an excellent page here)
http://realmacsoftware.com/blog/xcode-4-s-less-obvious-shortcuts
if you click on whatever file is in the current primaryEditor, then shift option apple comma that will indeed open the following "freaky little-known Xcode popup" ...
you can then, indeed, choose to open a new window. (So to be clear, that is exactly what I want to do.)
So, I want to be able to do that in one step. Cheers!
In XCode's Preferences you can change the following:
And then right-click within the primary editor and click "Open in Separate Window"
Edit:
Instead of right clicking in the primary editor you can simply type command+option+, (comma)
Open the file what you want to open in the NEW window.
Command + Shift + t
Open the file what you want to open in the separated window.
Command + Option + ,
I wrote a new automator service that does the following steps in Xcode:
Execute the default shortcut for the "Open in..." menu item (Command-O)
(if this isn't your current "Open in" shortcut, the workflow will not work. If you still want to test it, just changed your default shortcut :) )
Go all the way to the left in the weird "Open in" view
hit Enter
Current file opened in new window
The only thing you need to do is install the service on osx and map a shortcut to it.
Here a download to the service:
https://www.dropbox.com/s/486t2iz17o0l9dh/Open-New-Window.zip
INSTALL INSTRUCTIONS
1.Place Service file in folder ~/Library/Services
2. Open "System preferences"
3. > Keyboard
4. > Tab "ShortCuts" > "Service" > "General"
5. > Set your own shortcut for the service
6. Go to XCode and test the service by using your very own shortcut
Tested on OS X Mavericks, Xcode 5.0.1
In XCode 4 you can have a split window via View -> Show Assistant Editor. Then choose the same file which you have already opened in the Primary editor by the small right arrows on top of Assistant Editor.
Thanks
in the ProjectNavigator. If you see the file name: Double click on the file name. It will open in a new window.
When I first started to work with Xcode, single clicking on a file name in the Groups&Files pane would open that file up for editing in the embedded editing pane. Double clicking the file would open it up in a new window for editing.
Now, single clicking the file does nothing. Double clicking the file will open it up in a new window as before.
How can I set xcode to open up the file in the embedded editing pane by single clicking the file name in the Groups&Files pane?
In Xcode 3.x, make sure you're using the Default or All-in-one layout--not Condensed. If the editor pane is not visible, it might be shrunk down to the bottom of the window. Look for a small gray dot at the bottom and double-click it. The editor pane should then expand up.