Editor
- ctrl + a, ctrl + k, ctrl + k - delete a line (this first goes to start of line, then deletes the line, and then repeat to completely delete the line, consider doing a key-binding to do this with one key combo
- ctrl + shift + click OR ctrl + shift + up/down OR option +Click+Drag - edit multiple locations at once
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
Opening multiple files in Xcode side by side
how to sort lines: