Xcode keyboard shortcuts

Editor

Key board shortcuts in Xcode
 
Run cmd + r
Find cmd + shift + F
Find file cmd + shift + o
Clean build folder cmd + shift + k
Change context cmd + 1
Change to git cmd + 2
Hide left panel cmd + 0
Hide right panel cmd + opt + 0
show console cmd + shift + c
hide console cmd + shift + y
auto indent ctrl + i
 
Source control
commit opt + cmd + c
pull opt + cmd + x
 
 

Power Xcode shortcuts:

Code completion ctrl + Space
Jump to line cmd + L
Moving lines opt + cmd + ↑ and opt + cmd + ↓
Going back & forth ctrl + cmd + ← and ctrl + cmd + →
Delete line cmd + D
Open quickly (ctrl + cmd + O)
 
edit multiple lines at once = ctrl + shift + click lines
 
split screen view side by side - opt + shift, then click the file in the navigator, should highlight grey then choose which editor you would like. It seems in the latest Xcode you can hold option and then click a file, and it should automtically open in an assistant editor side-by-side
 
 
 
https://medium.com/flawless-app-stories/essential-xcode-shortcuts-for-more-efficient-coding-1f8e58b2c907
 
Opening multiple files in Xcode side by side
 
https://developer.apple.com/library/archive/documentation/ToolsLanguages/Conceptual/Xcode_Overview/AddingandOpeningFiles.html
 
how to sort lines:
https://coderwall.com/p/prke1w/sort-lines-of-text-in-any-osx-application
Tags: