If you use shortcuts well, you won't need a mouse for anything.
I don't know if anyone has the habit of trying various shortcuts before using a software. So today, I will introduce the various shortcuts that I often use, which can also make up for the several weeks of no updates.
This article mainly covers the following scenarios:
- Mac / Windows
- Chrome Browser
- Xcode IDE
Mac / Windows#
- System-level Control
Action | Mac | Windows |
---|---|---|
Close current page | command + W | ctrl + W |
Quit current software | command + Q | alt + f4 |
New window | command + N | ctrl + N |
New tab | command + T | ctrl + T |
Switch desktop | control + left / right | ctrl + win + left / right |
Switch application | command + tab | alt + tab |
Switch windows within the same application | command + ~ | - |
Open "Force Quit Applications" window | command + option + esc | win + esc (TaskMan) |
Open system settings | - | win + I |
Minimize the frontmost window to the dock | command + M | win + D |
Fullscreen | command + control + F | f11 |
Lock screen | command + control + Q | win + L |
- File Manager (Finder / Explorer)
Action | Mac | Windows |
---|---|---|
Delete file (folder) | command + backspace | delete / (ctrl + D) |
Move file (folder) | command + C → command + option + V | ctrl + X → ctrl + V |
Create new folder | command + shift + N | ctrl + shift + N |
Quickly open file manager | command + option + space | win + E |
Create a copy of the selected file | command + D | ctrl + C → ctrl + V |
Jump to specified path | command + shift + G | - |
Copy the current folder path | command + option + C | - |
Empty trash | command + shift + backspace | - |
Display files in different forms | command + 1 ~ 4 | - |
Arrange files according to different rules | command + control + 1 ~ 7 | - |
Show path bar | command + option + P | - |
Open file manager window with the same path | - | ctrl + N |
- Others
Action | Mac | Windows |
---|---|---|
Quickly open software, files | command + space | win + S |
Open preferences for the application | command + , (comma) | ctrl + , |
Save | command + S | ctrl + S |
Select all | command + A | ctrl + A |
Copy / Cut / Paste | command + C / X / V | ctrl + C / X / V |
Undo / Redo | command + Z / command + shift + Z (command + Y) | ctrl + Z / ctrl + shift + Z (ctrl + Y) |
Open emoji panel | fn | win + . (dot) |
Delete the character after the cursor | control + D | delete |
Tips:
- On Mac, combining shortcuts with the trackpad can maximize the mouse-free working mode. Compared to shortcuts, I prefer using gestures to switch applications and desktops. Also, remember to enable the three-finger drag feature on Mac trackpad as a substitute for mouse dragging capability.
- For operations with a specific order, combining the shift button generally achieves the reverse effect.
- Mac - Windows key mapping: command - ctrl, option - alt, control - auxiliary ctrl.
Reference: Mac Keyboard Shortcuts - Apple Official
Chrome Browser#
Many shortcut keys in Google Chrome browser are actually universal with the system, such as the aforementioned actions like closing the current page, opening a new window, and opening a new tab. In addition, there are some commonly used ones:
Action | Mac | Windows |
---|---|---|
Reopen the last closed tab | command + shift + T | ctrl + shift + T |
Go back / forward one view | command + left / right | alt + left / right |
Jump to the address bar | command + L | ctrl + L |
Find | command + F | ctrl + F |
Jump to the next tab | control + tab | ctrl + tab |
Open a link in a new background tab | command + click | ctrl + click |
Zoom in / out on the webpage | command and + / - | ctrl and + / - |
Open JavaScript console | f12 | f12 |
Reference: Chrome Keyboard Shortcuts - Google Chrome Official
Xcode IDE#
For iOS developers: (Many shortcut keys in Xcode are also universal with the system, such as closing the current page, opening a new tab, etc.)
- Familiarize with Code
Action | Shortcut |
---|---|
Quickly find files (classes, properties, methods) | command + shift + O |
Quickly locate the current file in the project | command + shift + J |
Jump to definition | command + control + click |
View method-related information (such as callers) | control + 1 |
Go back / forward one view | command + control + left / right |
Find | command + F |
Find using the selected text (reduce copy-paste operations) | command + E |
Find next | (command + G) / enter |
Global search | command + shift + F |
View related actions | command + click |
View quick help | option + click |
- Code Development
Action | Shortcut |
---|---|
Create new file | command + N |
Create new Group | command + option + N |
Replace | command + option + F |
Add documentation comment | command + option + / |
Comment out selected code | command + / |
Re-match code completion | esc |
Rename (edit all occurrences) | command + control + E |
- Build & Run & Debug
Action | Shortcut |
---|---|
Run | command + R |
Run without building | command + control + R |
Cancel running | command + . |
Clean build | command + shift + K |
Clear console | command + K |
Add / remove breakpoints | command + \ |
- Others
Action | Shortcut |
---|---|
Open developer documentation | command + shift + 0 |
Open welcome page and select project | command + shift + 1 |
Collapse / expand folder | left / right |
Edit scheme | command + shift + , |
Open simulator management page | command + shift + 2 |
Find syntax errors | command + shift + ; |
Tips: You can also make use of various options in the Editor to improve development efficiency, such as Minimap, Assistant view, etc.
Reference: Menu Command Shortcuts - Xcode Official
It seems that the appearance of the mouse has taken away the keyboard's job, but did the design of shortcuts help the keyboard make a comeback?
Alright, these are all the contents I want to share today. Do you have any recommended or favorite shortcuts? Feel free to comment in the comment section!