XCode and Swift Shortcuts
These are my commonly-used keyboard shortcuts in XCode.
Table of contents
- Show methods in open file (can be filtered by typing):
cmd-6
- Quick open file:
cmd-shift-o
- Build:
cmd-b
- Run in simulator (or on device):
cmd-r
lldb commands
- Change variable value:
expr myString = "Foo"
Swift snippets
- Providing a default value for an optional:
var unwrapped = optionalVal ?? defaultVal