Skip to content

Instantly share code, notes, and snippets.

@dyba
Last active December 22, 2015 00:39
Show Gist options
  • Save dyba/6391223 to your computer and use it in GitHub Desktop.
Save dyba/6391223 to your computer and use it in GitHub Desktop.
A list of Xcode shortcuts
# Movement
OPT + CMD + ] => Move a line up
OPT + CMD + [ => Move a line down
CMD + SHIFT + ] => Move one tab to the right
CMD + SHIFT + [ => Move one tab to the left
CMD + -> / CTRL + E => Move to the end of the line
CMD + <- / CTRL + A => Move to the start of the line
OPT + -> => Move forward one word
OPT + <- => Move backward one word
CTRL + -> => Move forward one word (can move by words inside of camelcased words)
CTRL + <- => Move backward one word (can move by words inside of camelcased words)
CTRL + n => Move down a line
CTRL + p => Move up a line
SHIFT + -> => Highlight the next character
SHIFT + <- => Highlight the previous character
# Modifying
CTRL + k => Delete a line
CTRL + d => Forward delete a character
ESC => Invoke code completion
# Commenting
CMD + / => Comment/Uncomment
# Indentation
CMD + ] => Indent to the right
CMD + [ => Indent to the left
# Accessing Files
CMD + SHIFT + O => Open Quickly
CMD + SHIFT + -> => Next file
CMD + SHIFT + <- => Previous file
CMD + CTRL + UP/DOWN => Access the .h/.m file
# Run commands
CMD + U => Run tests
CMD + R => Run app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment