Let’s start with some shortcuts on the MAC
⌘ | Command key (or Cmd) |
---|---|
⌥ | Option (or Alt) |
⇧ | Caps Loc (Shift key) |
⌃ | Control (Ctrl) |
write | The arrow on the |
left | The arrow |
1. Quickly find the file you are editing
⌘ + ⇧ + j
When ⌘ + ⇧ + O ⌘ to another file, the left file will not be switched to the corresponding file location. To ⌘ + ⇧ + j, ⌘ will quickly find the corresponding file.
2. Quick career changes
⌘ + l
Quickly jump to the corresponding file line number input number can be
3. Objective-c quickly switch.h. m files
⌘ + ⌃ + ↑or⌘ + ⌃ + ↓
So when we go to.m or.h we can quickly switch between two files
4. Move quickly in a single line of code
⌘ + ⌥ + ↑ ⌘ + ⌥ + ↓
This shortcut moves the currently selected row up or down
5. Quickly edit multiple lines of code
When you’re editing code, hold down ⌥ and the cursor will look like +, so you can box multiple lines of code and then you can edit multiple lines of code
Thanks for taking the time to read this article.