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.
Related
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 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
In most editors (including Visual Studio proper), I can use Shift+End to select all of the text from the cursor location to the end of the current line, and Shift+Home to select all text up to the beginning of the line.
These shortcuts don't seem to work out-of-the box (at least, on the Mac version). Is there some way to enable this, perhaps with a plugin or a setting I'm missing?
Strange it should work out of the box. If not, go to File > Preferences > Keyboard Shortcuts and look for cursorEndSelect.
{"key": "shift+end", "command": "cursorEndSelect", "when": "editorTextFocus"}
I use following inbuilt shortcut (VSCode 1.39.2, MacOS 10.15)
⌘ Command + ⇧ Shift + → Right Arrow key combination
You can access keyboard shortcut reference here: https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf
You can visit this link anytime from VS Code by navigating to
Help > Keyboard Shortcuts Reference
It now appears to be ⌘ Command + ⇧ Shift + ↓ Down Arrow
(MacOS Big Sur 11.6)
The way that I set up mine is to go to File > Preferences > Keyboard Shortcuts and look for cursorLineEnd and cursorLineStart. Set these to with your own shortcuts for jumping to the end and beginning of a line.
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 !
I'm finally starting to get over my initial frustrations with Xcode 4.0 (why on earth did they think changing all of the keyboard shortcuts was a good idea).
However, one simple task is beyond me right now... how do I switch between multiple open projects via the keyboard?
For example, I have two different Xcode projects open, and the mac will put them both into the same Xcode application (unlike Windows where you can easily see multiple instances of the same application open). I want to quickly toggle back and forth between these projects without going to Window -> (choose the other project). Is there an easy keyboard shortcut for this? It seems that there used to be.
To switch use following Keyboard shortcut
Cmd + `
Command + tilde("~") keys. Can be very useful when you have limited screen space.
Furthermore, XCode windows must not be "maximized" (the icon with two arrows up on the right), otherwise the key shortcut has no effect.
Xcode 8.3.3 - German Keyboard
Cmd + Shift + <
Update:
In fact there is a keybinding in Xcode that overides the system wide shortcut to switch between windows on german keyboards. The keybinding is Cmd + < for Scheme > Edit Scheme.
When this shortcut is changed or removed, then the usual shortcuts to cycle through the open windows of an application will work as expected (i.e. Cmd + < cycle forward, Cmd + Shift + < cycle backward).
Xcode 4.6 Italian Keyboard
Cmd + Shift + `
This works for me:
Cmd + Shift + ´