Xcode 11 how to use editor and assistant editor - xcode

In Xcode 10 I used the shortcut cmd + alt to open a second editor and cmd + return to close the second one.
In Xcode 11 I can open a second editor using cmd + alt but cmd + return is not working.
Clicking Show Editor Only isn't working as well.
What am I missing?
Thanks

Look 2 menu items further down.
To open and close a second editor you can press ⌃⌥⌘↩

Related

Xcode 11.5 Assistant editor show any file

I want to be able to open any file in the assistant editor. Right now it is forcing me to open "counterparts", "test classes" and other stuff that i dont need.
I need two different classes to look at.
In previous xcodes it was possible
Where is this option in Xcode 11?
You can either alt + click in the file navigator to open in a new editor, or click this icon:
(pro tip: hold alt to toggle new editor position [on right | below])
Also, alt + click on a file while more than one editors are open will open the file in the non focused one.
Finally, ctrl + alt + cmd + click on a symbol will open that symbol in a new editor (or to the secondary if you got more than one).
Bonus: alt + enter on a quick open result (cmd + shift + O) will save you the trip to the file navigator.
Don't use the assitant editor, simply click on the "+" icon in the top right
"Add editor on right"

xcode 11 Close secondary editor shortcut

Is there a shortcut to close all other editors except focused one?
Previously I would open a file with option so it would show as a second editor. When I was done with the second editor, I would "close" it by using show editor only (command + return). With xcode 11, the second editor isn't part of the assistant editor. So, I can't "close" it with show editor only.
In simple terms.. Is there a shortcut to close the right editor and only show the left one.
I think SHIFT+CONTROL+CMD+RETURN is exactly what you are looking for (Note: you should be "focused" on left editor to close right).
Helpful link about new Xcode 11 assistant editor behavior:
https://www.avanderlee.com/xcode/xcode-assistant-editor/
The shortcut to close the current active editor is:
ctrl + ⌥ option + ⌘ command + W
This answer contains many more options

Xcode 9 Jump to definition in a new tab, window, or other navigation area with Option-Shift-Command+Click

Xcode 9 seems to be missing jump to definition shortcut Option-Shift-Command+Click. You used to be able to use to open definition in a new tab, window, or other navigation areas with Option-Shift-Command+Click. In Xcode 9 this still works from the file navigator but not when you use this on a class. Has anyone been able to figure out how to use this shortcut in xcode 9?
You can use Xcode preferences to personalise the double click and the action selector.
From this window you can change CMD + click to open the definition instead of the action selector (as it was in Xcode 8)
you can also change the behaviour of optional navigation, so that it opens a tab
By setting the configuration as shown below, you can CMD + ALT + click to jump to definition in a new tab.
This also restores Option-Shift-Command+Click to show the window selector as you wanted
Marco's screenshot was helpful.
The keyboard commands for Xcode 9 have changed:
Jump to Definition
Same window : Command-Control-click (was Command-double-click)
In assistant pane : Command-Option-Control-click
In separate window/pane : Command-Option-Control-Shift-click
Quick Help
Option-click (same as Xcode 8)
As soon as I asked a question I found a solution by accident.
Command + click on the class to bring up the new action selector
Shift + Alt + Click to chose where to open (tab, new window, etc)
Alternatively, can use Command + Option + Control + Shift to do this all at once but I'm not sure how convenient that is
First, Open the file.
Then:
New Window : Cmd + Shift + t
The Assistance Editor : Cmd + t

PhpStorm terminal shortcuts: switch tab, return to editor, etc. (Mac)

On opening PhpStorm's Terminal Tool Window, I would expect to be able to run commands like Ctrl + Tab to switch terminal tabs, or Cmd + 1 to open the Project Tool Window, but my keyboard is stuck inside the Terminal.
Is there a way to release the keyboard from the Terminal so that I can return to regular commands? (Without using Option + F12 to hide the Terminal Tool Window.)
Switching between Terminal tabs can be done using the same shortcut as Editor tabs: Alt+Left/Right on Windows using Default keymap (on Mac it would be Cmd + Shift + [ and Cmd + Shift + ] (or whatever you have got there for Main Menu | Window | Editor Tabs | Select Next/Previous Tab -- you can verify/change it in your Preferences | Keymap)).
Project View tool window shortcut (Alt+1 on Windows or Cmd+1 on Mac) does not work indeed if used in Terminal.. but shortcuts for Favorites or Structure tool windows still work just fine.
Therefore I may suggest to jump to Structure via Alt+7 (Cmd+7 on Mac) first and then just use Esc to get into Editor). P.S. See if recording macro with such sequence will work for you (you can assign custom shortcut to it).
I'd suggest simply adding another keyboard shortcut for accessing the terminal. E.g. ⌘0
F12 is the default shortcut for Mac and Linux OS.
This shortcut will toggle terminal focus. The default F12 shortcut for Mac (dunno about Windows) will not.
You may need to restart PhpStorm to hijack ⌘0 or whatever you choose.
You can access terminal by Alt + F12 on Windows
PHPStorm and other products of Jet-brains are configurable to your liking. you don't need to learn new keyboard shortcut jus configure the as you prefer.
For example for me i use PHPStorm VS code and Sublime text editor for my coding daily.
So it is good to have same key-map on all of your IDES/Text editors
i am on mac and i use these key-map for all of the mentioned above
Command + ! => toggle Explore tab
Command + ~. => toggle Termina tab
Command + 2. => toggle console tab
So to configure any keyboard of your choice this on PHPStorm (macOs)
Hit Command + , and you will be on PHPStorm Preferences
Go to Key-map if you happen to know the current working shortcut on your PHPStorm
then on you right side after the search box there is a keyboard hit it and press the current working key let say by default toggling terminal is option + F12 (please note for some keyboard you need to add function key(fn) that will make it be option/alt + fn + F12)
Hope you will see terminal with keyboard shortcut at the right side, then two finger click/ right click hope you will have a popup menu to add new keyboard shortcut or remove the existing one.
Add your preferred keyboard shortcut first before removing the existing on (why ? since as soon as you remove the keyboard and you firstly got there via that keyboard shortcut the result will refresh and the thing will disappear from the view)
Note some of the new shortcut you prefer will be already in use that should not scare you away. just remove that and remap with a new binding later which you find useful for you.
Apply and ok then you are good to go !

Xcode 4.3.1 - Switch to Output/Console Window shortcut

Is there a keyboard shortcut in Xcode 4.3.1 that will place my cursor in the Output/Console window. To be clear, I would like a quick way to place my cursor next to (lldb) in the Output/Console window.
Also, a keyboard shortcut to then place my cursor back in the text editor window would be handy.
"Command + Shift + C" is the default for Xcode 7.
Edit: Still valid in Xcode 9.
For completeness sake, I am adding the shortcut for Xcode 8. Go to View->Debug Area, here you will see the shortcut command: Command+Shift+Y to switch between debug/console output window area and the editor.
Turns out that "Command + Option + ." cycles between windows that include the text editor and console.

Resources