Navigate Between Projects in Xcode 4.0 - xcode

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 + ´

Related

In Mac how to switch between the projects' window in AndroidStudio?

My OS is Mac.
I have opened several projects in AndroidStudio, sometimes I wanted to switch between the projects to choose a project. Is there any keyboard shortcuts to do it just like "command/ctrl + tab" ?
Use Cmd + ` (Cmd + Backtick). It switches between all the projects that are open on Android Studio.
In Android studio command to switch between diffrent project windows (i.e. windows those are not minimised) is as following :
⌘` -> (i.e command + backtick) -> for next project window
⇧⌘`-> (i.e shift + command + backtick) for previous project window
You can add your preferable shortcuts in Android studio -> Preference -> Keymap
Sometimes it doesn't work because of conflicts with other shortcuts.
Go to the menu "Android Studio" -> "Preferences", choose "Keymap".
And, use the search field for quick access.
For example, I made Ctrl+Shift+` shortcut, which is easy to use with one hand.
I'm not familiar with the Mac version of Android Studio, but the standard key combo for switching between windows within an app on the Mac is cmd-` (cmd-backtick) unless the app maps that to something else.
For AS 3.5.3 and after, open Window menu and look for Next Project Window or Previous Project Window options. They have the shortcut combinations next to them.
Precisely:
Next Project ⌥ ⌘ `
Previous Project ⌥⇧ ⌘ `
On a MacBook Pro keyboard getting the backtick requires pressing Shift so stock shortcut doesn't work (Studio 3).
But you can remap it to use the 'tick' instead : ´
So it becomes ⌘ + ´ for next project
and ⌘ + shift + ´ for previous project (equivalent of ⌘ + `)
That is probably what the designer had in mind.
A forward tilted tick to indicate a forward navigation and the
backtick symbolizing "backwards".
See Android Studio -> Preferences -> Keymap -> Main Menu -> Window
⌘` is the default shortcut. But since I have Android Studio 3 installed it doesn't work anymore. I solved this by replacing it through ⌘^ which is the same key combination.
When I update android studio to version 4.2.1, I also can't switch project. When I swith to official keymap like "Eclipse (macOS)", I search "cmd+ Backtick". I find the name is "Active Next Window". So I switch to my keymap and search "Active Next Window" as the second screenshot. Then I set it to "cmd+ Backtick".
Backtick is the "'" key on keyboard.
Windows - Command + ` (Backtick)
Mac - Option + Command + ` (Backtick)
Command ⌘ + Backtick `
It's Worked for me.
To switch between projects:
command+option+`

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 - cycle through previously opened documents

I would like to have ctrl-tab behavior in Xcode (4.6, if that's relevant)-- is that available?
I do NOT mean behavior described as in the answer to this question:
Xcode - cycle through open windows
That is, cmd-` is not what I want to do, because I don't want to use multiple windows.
I mean, I want the editor to behave like Visual Studio or Netbeans, and be able to cycle through the files that I've opened in the same real estate. I don't like having a cloud of windows to navigate through. Is this possible, or is this idiom just not something in Xcode at all?
You can use control-2 to bring up the history menu, then up and down to select the file you want. Then control-3 to move forward.
Try ctrl + cmd + left Arrow/right Arrow
One approach is to use more tabs. In the General tab of Xcode's Preferences (as of Xcode 4.6.3), set “Double Click Navigation” to “Use Separate Tab”:
Then, when you open files by double-clicking them, they will open in new tabs. You can navigate between tabs by typing ⌘ { and ⌘ } (command-shift-left bracket and command-shift-right bracket). You can rebind the “Select Next Tab” and “Select Previous Tab” commands in the Key Bindings preferences if you want to use other keys.
I think what you want is the following:
Sorry for using Xcode 5 here, but I think that might be more future-proof and it's the same in Xcode 4.X.
As far as I know there is no shortcut for that behavior but - as in any web view - you can swipe with your finger (1 finger on the Magic Mouse, 2 finger on the Trackpad).

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.

Isn't there a Go To Last Edit Location shortcut in XCode?

I'm rather new to XCode and I still miss so many shortcuts and features available in IntelliJ IDEA.
Perhaps the biggest pain point for me is the lack of a keyboard shortcut (or even a menu action) that allows you to move through your most recent change points (points in which you modified files).
In case you're familiar with IntelliJ, I'm referring to the Ctrl-Shift-Backspace shortcut... (or Shift-⌘-Backspace on a Mac)
I'm NOT referring to navigation through your recent view points (via Alt-⌘-Left & Alt-⌘-Right) - only locations you edited.
You can find some useful XCode tricks here.
⌘-Z then redo
I got here via Google. In Xcode 4 & 5 the shortcuts are
CTRL + Command + Back Arrow
CTRL + Command + Forward Arrow
It's not available the way Jetbrains and other do it. Using AppCode might be a choice.
To scroll through your recent changes in Xcode:
Push and hold Control + Command keys (holding them both down)
Then press and release the back arrow (in the bottom right of the Apple keyboard)
While still holding the Control and Command keys down, press the back arrow down again.
This will scroll through the changes you have made to the files in your project. I believe this will only show you the changes since the project was opened.

Resources