Why Keyboard Shortcuts Drive Developer Productivity
Reaching for your mouse while typing breaks your mental flow and introduces subtle micro-delays. Over time, these small interruptions add up to hours of wasted focus every week. Combining keyboard shortcuts with CLI aliases streamlines your development velocity.
Essential VS Code Shortcuts
- Cmd + P (macOS) / Ctrl + P (Windows): Quick-open files by typing partial filenames.
- Cmd + Shift + P / Ctrl + Shift + P: Access the Command Palette to execute any VS Code command instantly.
- Cmd + D / Ctrl + D: Select the current word and sequentially match additional occurrences for multi-cursor editing.
- Option + Up/Down / Alt + Up/Down: Move the current line up or down.
- Cmd + B / Ctrl + B: Toggle the side bar visibility to maximize editor screen area.
Helpful Git Shell Aliases
Adding the following aliases to your .zshrc or .bashrc speeds up terminal-based Git operations significantly:
# Git Command Aliases
alias gs="git status"
alias ga="git add"
alias gc="git commit -m"
alias gp="git push"
alias gl="git log --oneline -n 10"