Common Mac Keyboard Shortcuts#
🔧 System Basics#
| Shortcut | Description | Symbolic Representation |
|---|---|---|
| cmd+tab | Switch applications | ⌘+⇥ |
| cmd+` | Switch between windows of same app | ⌘+` |
| cmd+w | Close current window/tab | ⌘+w |
| cmd+m | Minimize current window | ⌘+m |
| cmd+shift+3 | Full screen screenshot | ⌘+⇧+3 |
| cmd+shift+4 | Partial screenshot | ⌘+⇧+4 |
| cmd+q | Quit current application | ⌘+q |
| cmd+backspace | Delete current line/selection | ⌘+⌫ |
| cmd+ctrl+f | Toggle full screen mode | ⌘+⌃+f |
💻 Command Line Environment#
| Shortcut | Description | Symbolic Representation |
|---|---|---|
| ctrl+u | Delete entire line before cursor | ⌃+u |
| ctrl+w | Delete word before cursor | ⌃+w |
| ctrl+a | Move cursor to line start | ⌃+a |
| ctrl+e | Move cursor to line end | ⌃+e |
| ctrl+k | Delete from cursor to line end | ⌃+k |
📝 VS Code#
| Shortcut | Description | Symbolic Representation |
|---|---|---|
| cmd+, | Open settings | ⌘+, |
| shift+alt+f | Format document | ⇧+⌥+f |
| ctrl+` | Toggle integrated terminal | ⌃+` |
| cmd+shift+p | Open command palette | ⌘+⇧+p |
| cmd+w | Close current editor tab | ⌘+w |
| cmd+shift+w | Close current window | ⌘+⇧+w |
u-tools#
| Feature Name | Shortcut | Symbolic Representation |
|---|---|---|
| Launch main page | alt+space | ⌥+␣ |
| Stock tracker | alt+s | ⌥+s |
| Generate variable name | alt+n | ⌥+n |
| Text translation | alt+f | ⌥+f |
Karabiner Custom Script#
Modifier: alt (hold alt then press the following keys)
| Function Key | Mapped Function | Symbolic Representation |
|---|---|---|
| j | Left arrow key | ⌥+j → ← |
| k | Down arrow key | ⌥+k → ↓ |
| i | Up arrow key | ⌥+i → ↑ |
| l | Right arrow key | ⌥+l → → |
| u | Backspace | ⌥+u → ⌫ |
| m | Enter | ⌥+m → ↵ |
| p | ( | ⌥+p → ( |
| / | = | ⌥+/ → = |
| , | - | ⌥+, → - |
| . | + | ⌥+. → + |
{
"summary": "mzm yyds",
"manipulators": [
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": ["left_option"],
"optional": ["any"]
}
},
"to": [{ "key_code": "left_arrow" }],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": ["left_option"],
"optional": ["any"]
}
},
"to": [{ "key_code": "down_arrow" }],
"type": "basic"
},
{
"from": {
"key_code": "i",
"modifiers": {
"mandatory": ["left_option"],
"optional": ["any"]
}
},
"to": [{ "key_code": "up_arrow" }],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": ["left_option"],
"optional": ["any"]
}
},
"to": [{ "key_code": "right_arrow" }],
"type": "basic"
},
{
"from": {
"key_code": "u",
"modifiers": {
"mandatory": ["left_option"],
"optional": ["any"]
}
},
"to": [{ "key_code": "delete_or_backspace" }],
"type": "basic"
},
{
"from": {
"key_code": "m",
"modifiers": {
"mandatory": ["left_option"],
"optional": ["any"]
}
},
"to": [{ "key_code": "keypad_enter" }],
"type": "basic"
},
{
"from": {
"key_code": "p",
"modifiers": {
"mandatory": ["left_option"],
"optional": ["any"]
}
},
"to": {
"key_code": "9",
"modifiers": ["shift"]
},
"type": "basic"
},
{
"from": {
"key_code": "slash",
"modifiers": {
"mandatory": ["left_option"],
"optional": ["any"]
}
},
"to": [{ "key_code": "equal_sign" }],
"type": "basic"
},
{
"from": {
"key_code": "comma",
"modifiers": {
"mandatory": ["left_option"],
"optional": ["any"]
}
},
"to": [{ "key_code": "hyphen" }],
"type": "basic"
},
{
"from": {
"key_code": "period",
"modifiers": {
"mandatory": ["left_option"],
"optional": ["any"]
}
},
"to": {
"key_code": "equal_sign",
"modifiers": ["shift"]
},
"type": "basic"
}
]
}