- Move line up or down:
cmd-option-[orcmd-option-]
- Center screen around cursor:
^l
See: https://developer.apple.com/videos/play/wwdc2018/102/?time=2518
- Create new cursors:
shift + control + left click - New cursor above:
shift + control + <up arrow> - New cursor below:
shift + control + <down arrow> - Create a new cursor on every line:
option + drag
- Use ctrl-6 to quick access
MARKed sections,structs, etc. - The
MARK: -construct creates a divider line - The
MARK: noteorMARK: - noteconstructs create notes - Also useful:
// TODO: -and// FIXME: - - Use
#warning("message")to create compiler warnings. - Use
#error("message")to create compiler errors. - Use
@available(swift, deprecated: <version number>)to check on progress on bugs in the language. If you use a current version number, you will get a "deprecated" warning anywhere you've used that code (e.g., put the mark on the line above the definition of astructor aprotocol, etc.). Can include a message:@available(swift, deprecated: -, message: -). Also may useobsoletedinstead ofdeprecatedto generate a compiler error instead of a warning. Andswifthere is a platform argument, so it could beiOS, etc.