VS Code
Quick Commands
| Action | Windows/Linux | macOS |
|---|---|---|
| Save File | Crtl + S | Cmd + S |
| Save all Files | Crtl + K, S | Cmd + Option + S |
| Copy Line | Crtl + C | Cmd + C |
| Cut Line | Crtl + X | Cmd + X |
| Paste | Crtl + V | Cmd + V |
| Undo | Crtl + Z | Cmd + Z |
| Redo | Crtl + Y or Crtl + Shift + Z | Cmd + Shift + Z |
| Delete Line | Crtl + SHIFT + K | Cmd + SHIFT + K |
| Move Line Up/Down | Alt + ↑ / ↓ | Option + ↑ / ↓ |
| Duplicate Line | Shift + Alt + ↓ | Shift + Option + ↓ |
| Find | Crtl + F | Cmd + F |
| Replace | Crtl + H | Cmd + H |
| Show Command Palette | Crtl + Shift + P or F1 | Cmd + Shift + P or F1 |
| Go to Line | Crtl + G | Cmd + G |
| Go to File | Crtl + P | Cmd + P |
| Go to Symbol | Crtl + Shift + O | Cmd + Shift + O |
| Toggle Sidebar | Crtl + B | Cmd + B |
| Comment/Uncomment Line | Crtl + / | Cmd + / |
| Top ↑ |
Replace
| Action | Windows/Linux | macOS |
|---|---|---|
| Replace all variables in a file | Crtl + H, enter variables, then press Crtl + Alt + Enter | Cmd + H, enter variables, then press Cmd + Alt + Enter |
| Replace all variables across all files | Crtl + Shift + F, click the arrow next to the input box, enter variables, then press Crtl + Alt + Enter | Cmd + Shift + F, click the arrow next to the input box, enter variables, then press Cmd + Alt + Enter |
| Top ↑ |
Terminal
-
Starts a basic HTTP server.
SHELL
Copied!
python -m http.server -
Allows external devices on the same network to access your machine using its local IP address (e.g, 192.168.x.x:8000). Uses port 8000 as the default.
SHELL
Copied!
python -m http.server --bind 0.0.0.0 -
Use a custom port (192.168.x.x:5000).
SHELL
Copied!
python -m http.server --bind 0.0.0.0 5000
| Quick Links | |
|---|---|
| VS Code short keys Windows | |
| VS Code short keys macOS | |
| Top ↑ |