Useful shortcut:
Comment/ Un-comment code : Command + /
Undo : Command + Z
Redo : Command + Shift + Z
Shift Right or Left : Command + [ or ]
Indent : Control + I
Navigate to the beginning or end of line : Command + Left/Right Arrow
Navigate word by word left or right of line : Option + Left/Right Arrow
Bring up possible auto-completion choices : esc
Jump To definition : Command + Click
Put a breakpoint to a line : Command + \
Move line up or down: Option + Command + [ or ]
Find in File : Command + F
Find & Replace in File : Command + Option + F
Find in Project : Command + Shift + F
Find & Replace in Project : Command + Option + Shift + F
New Tab : Command + T
Next Tab : Command + Shift + {
Previous Tab : Command + Shift + }
Open Quickly : Command + Shift + O //go to the file
Move Focus to Editor : Command + J
Navigate to Next File in Recently Visited : Command + Control + Right Arrow
Navigate to Previous File in Recently Visited : Command + Control + Left Arrow
Show present file in Editor : Command + Shift + J //show the file in project
Fold/ Unfold code : Command + Option + Left or Right Arrow
Fold/ Unfold all methods/functions: Option + Shift + Command + Left or Right Arrow
Fold/ Unfold all multiple line comments : Control + Shift + Command + Left or Right Arrow
Font Size Increase/Decrease : Command + or -
Go to line number : Command + L //go to the line
Show Assistant Editor : Command + Option + Return
Hide Assistant Editor : Command + Enter
Toggle Completions : Control + Space
Edit All in Scope : Command + Control + E
Show / Hide Navigator : Command + 0
Switch Tabs : Command 1-8
When clicking a File in Navigator open in
Assistant Editor : Option + Click New Window : Double click Decide where to open : Shift + Option + Click
Toggle Debug Area : Command + Shift + Y
Next Issue : Command + ’
Previous Issue : Command. + ”
Toggle Breakpoints : Command + Y
Clear Console : Command + K
Show / Hide Utilities : Command + Option + 0
Switch Tabs Utilities : Command + Option + 1-9
Build : Command + B
Run : Command + R
Stop : Command + .
Analyze : Command + Shift + B
Test : Command + U
Clean : Command + Shift + K
Help for Clicked Symbol : Option + click
Documentation for clicked Symbol : Option + Double click
Show Documentation : Command + Shift + 0
Documentation for Selection : Command + Option + Control + /
Move Focus to Filter in Navigator : Command + Option + J
Move Focus to Filter in Utilities : Command + Option + L
Cheers :)
Open terminal in Xcode
This is how you do it. It’s a one time setup.
1 Create a 2 line shell script and give the file execute permission.
2 Go to Xcode Preferences.
3 Add a Behavior in Xcode. Name it and give a shortcut key.
4 On the right side details pane check the Run option.
5 From the adjacent drop-down menu choose the script you just saved in step 1.
Here’s the video on how to do it.
https://www.youtube.com/watch?v=MMeu3xeXZxM
Script:
#!/bin/bash
open -a Terminal $PWD
Command to give execute permission:
chmod +x /path/to/the/open_terminal.sh