Development Shortcuts & Productivity Commands
Overview
Essential keyboard shortcuts, IDE commands, and productivity tools for AzmX development across different editors, terminals, and development environments. This reference focuses on maximizing development velocity and efficiency.
VS Code / Cursor IDE Shortcuts
Navigation and Search
# File operations
Cmd/Ctrl + P # Quick file search
Cmd/Ctrl + Shift + P # Command palette
Cmd/Ctrl + Shift + E # Explorer panel
Cmd/Ctrl + Shift + F # Global search
Cmd/Ctrl + Shift + H # Global find and replace
# Code navigation
Cmd/Ctrl + Click # Go to definition
F12 # Go to definition
Shift + F12 # Go to references
Cmd/Ctrl + F12 # Go to implementation
Alt + ←/→ # Navigate back/forward
# Symbol navigation
Cmd/Ctrl + Shift + O # Go to symbol in file
Cmd/Ctrl + T # Go to symbol in workspace
Editing Productivity
graph LR
A[Code Editing] --> B[Multi-cursor]
A --> C[Line Operations]
A --> D[Block Operations]
A --> E[Code Folding]
B --> F[Alt + Click]
B --> G[Cmd/Ctrl + Shift + L]
B --> H[Cmd/Ctrl + D]
C --> I[Cmd/Ctrl + Shift + K]
C --> J[Alt + ↑/↓]
C --> K[Shift + Alt + ↑/↓]
style B fill:#4ecdc4
style C fill:#74b9ff
style D fill:#fdcb6e
Multi-cursor and Selection
# Multi-cursor editing
Alt + Click # Add cursor at position
Cmd/Ctrl + Alt + ↑/↓ # Add cursor above/below
Cmd/Ctrl + Shift + L # Select all occurrences
Cmd/Ctrl + D # Select next occurrence
Cmd/Ctrl + K, Cmd/Ctrl + D # Skip current occurrence
# Selection
Cmd/Ctrl + A # Select all
Cmd/Ctrl + L # Select current line
Cmd/Ctrl + Shift + →/← # Select word
Shift + Alt + →/← # Expand/shrink selection
Line and Block Operations
# Line operations
Cmd/Ctrl + Shift + K # Delete line
Alt + ↑/↓ # Move line up/down
Shift + Alt + ↑/↓ # Copy line up/down
Cmd/Ctrl + Enter # Insert line below
Cmd/Ctrl + Shift + Enter # Insert line above
# Code formatting
Shift + Alt + F # Format document
Cmd/Ctrl + K, Cmd/Ctrl + F # Format selection
Cmd/Ctrl + / # Toggle line comment
Shift + Alt + A # Toggle block comment
Code Folding and Navigation
# Code folding
Cmd/Ctrl + Shift + [ # Fold region
Cmd/Ctrl + Shift + ] # Unfold region
Cmd/Ctrl + K, Cmd/Ctrl + 0 # Fold all
Cmd/Ctrl + K, Cmd/Ctrl + J # Unfold all
Cmd/Ctrl + K, Cmd/Ctrl + [ # Fold recursively
Git Integration
# Git shortcuts in VS Code
Cmd/Ctrl + Shift + G # Source control panel
Cmd/Ctrl + K, Cmd/Ctrl + O # Open file in new window
Cmd/Ctrl + K, V # Open markdown preview
F1, type "git" # Git commands in palette
Terminal Productivity
Zsh/Oh-My-Zsh Shortcuts
# Navigation
!! # Repeat last command
!$ # Last argument of previous command
!^ # First argument of previous command
!* # All arguments of previous command
cd - # Go to previous directory
pushd/popd # Directory stack
# History
Ctrl + R # Reverse search history
Ctrl + G # Cancel search
!!:p # Print last command without executing
!n # Execute command n from history
Terminal Multiplexer (tmux)
# Session management
tmux new -s session-name # Create named session
tmux attach -t session-name # Attach to session
tmux list-sessions # List sessions
tmux kill-session -t name # Kill session
# Window management (prefix: Ctrl+b)
Ctrl+b c # Create new window
Ctrl+b n/p # Next/previous window
Ctrl+b [0-9] # Switch to window number
Ctrl+b , # Rename window
Ctrl+b & # Kill window
# Pane management
Ctrl+b % # Split vertically
Ctrl+b " # Split horizontally
Ctrl+b arrow # Navigate panes
Ctrl+b o # Cycle through panes
Ctrl+b x # Kill pane
Ctrl+b z # Zoom pane
Fish Shell Shortcuts
# Auto-completion
Tab # Complete command/path
Shift+Tab # Complete with multiple options
Alt+↑/↓ # Navigate history by prefix
Alt+←/→ # Navigate by word
# Functions
funced function_name # Edit function
funcsave function_name # Save function
Database Management
PostgreSQL (psql) Commands
# Connection shortcuts
\l # List databases
\c database_name # Connect to database
\dt # List tables
\d table_name # Describe table
\du # List users
\q # Quit
# Query shortcuts
\e # Edit last query in editor
\g # Execute last query
\timing # Toggle timing display
\x # Toggle expanded display
\copy table TO/FROM file # Import/export data
MongoDB Commands
# Database operations
show dbs # List databases
use database_name # Switch database
show collections # List collections
db.collection.find().pretty() # Pretty print results
# Query shortcuts
db.collection.find().limit(10)
db.collection.count()
db.collection.distinct("field")
Development Environment
Node.js/npm Shortcuts
# Package management
npm i # Install dependencies
npm i -D package # Install dev dependency
npm i -g package # Install globally
npm un package # Uninstall package
npm ls # List installed packages
npm outdated # Check for outdated packages
npm audit # Security audit
# Scripts
npm run # List available scripts
npm start # Start application
npm test # Run tests
npm run dev # Development server
npm run build # Build for production
# Useful aliases (add to ~/.bashrc or ~/.zshrc)
alias ni="npm install"
alias nid="npm install --save-dev"
alias nig="npm install --global"
alias nis="npm install --save"
alias nu="npm uninstall"
alias nr="npm run"
alias ns="npm start"
alias nt="npm test"
Python/pip Shortcuts
# Package management
pip install package
pip install -r requirements.txt
pip freeze > requirements.txt
pip show package
pip list --outdated
# Virtual environments
python -m venv venv
source venv/bin/activate # Linux/Mac
venv\Scripts\activate # Windows
deactivate
# Django shortcuts
python manage.py runserver
python manage.py migrate
python manage.py makemigrations
python manage.py shell
python manage.py test
python manage.py collectstatic
# Useful aliases
alias py="python"
alias pm="python manage.py"
alias pms="python manage.py runserver"
alias pmm="python manage.py migrate"
alias pmmk="python manage.py makemigrations"
Browser Developer Tools
Chrome DevTools Shortcuts
# Opening DevTools
F12 or Cmd/Ctrl + Shift + I # Open DevTools
Cmd/Ctrl + Shift + C # Inspect element
Cmd/Ctrl + Shift + J # Console
Cmd/Ctrl + Shift + Delete # Clear browsing data
# Navigation
Cmd/Ctrl + [/] # Back/forward in panels
Cmd/Ctrl + R # Reload page
Cmd/Ctrl + Shift + R # Hard reload
Cmd/Ctrl + Shift + Delete # Clear cache and hard reload
Console Shortcuts
// Useful console methods
console.table(data) // Display data as table
console.group("Group") // Group console output
console.time("timer") // Start timer
console.timeEnd("timer") // End timer
console.trace() // Stack trace
// Selection shortcuts
$0 // Last selected element
$1, $2, $3, $4 // Previously selected elements
$('selector') // Query selector
$$('selector') // Query selector all
IDE-Specific Productivity
JetBrains IDEs (WebStorm, PyCharm)
# Navigation
Double Shift # Search everywhere
Cmd/Ctrl + N # Go to class
Cmd/Ctrl + Shift + N # Go to file
Cmd/Ctrl + Alt + N # Go to symbol
Cmd/Ctrl + E # Recent files
# Editing
Cmd/Ctrl + D # Duplicate line
Cmd/Ctrl + Y # Delete line
Alt + J # Select next occurrence
Cmd/Ctrl + Alt + L # Reformat code
Cmd/Ctrl + Alt + O # Optimize imports
# Refactoring
F6 # Move
Shift + F6 # Rename
Cmd/Ctrl + Alt + M # Extract method
Cmd/Ctrl + Alt + V # Extract variable
Vim/Neovim Commands
# Mode switching
i # Insert mode
v # Visual mode
V # Visual line mode
Ctrl + v # Visual block mode
: # Command mode
# Navigation
h, j, k, l # Left, down, up, right
w, b # Word forward/backward
0, $ # Beginning/end of line
gg, G # Top/bottom of file
Ctrl + f/b # Page down/up
# Editing
dd # Delete line
yy # Copy line
p, P # Paste after/before
u # Undo
Ctrl + r # Redo
. # Repeat last command
# Search and replace
/pattern # Search forward
?pattern # Search backward
n, N # Next/previous match
:%s/old/new/g # Replace all
Command Line Tools
Productivity Aliases
# Add to ~/.bashrc, ~/.zshrc, or ~/.config/fish/config.fish
# Navigation
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias ~="cd ~"
alias -- -="cd -"
# List files
alias l="ls -lah"
alias la="ls -la"
alias ll="ls -l"
alias lsa="ls -lah"
# Git aliases
alias g="git"
alias ga="git add"
alias gaa="git add ."
alias gc="git commit"
alias gcm="git commit -m"
alias gco="git checkout"
alias gcb="git checkout -b"
alias gp="git push"
alias gpl="git pull"
alias gs="git status"
alias gd="git diff"
alias gl="git log --oneline"
# Docker aliases
alias d="docker"
alias dc="docker-compose"
alias dcu="docker-compose up"
alias dcd="docker-compose down"
alias dcl="docker-compose logs"
alias dce="docker-compose exec"
# npm/yarn aliases
alias nrs="npm run start"
alias nrb="npm run build"
alias nrt="npm run test"
alias nrd="npm run dev"
alias yrs="yarn start"
alias yrb="yarn build"
alias yrt="yarn test"
alias yrd="yarn dev"
Advanced Terminal Tools
# Modern replacements for common tools
bat # Better cat with syntax highlighting
exa # Better ls with colors and git info
fd # Better find
rg # Ripgrep - better grep
fzf # Fuzzy finder
htop # Better top
ncdu # Disk usage analyzer
tldr # Simplified man pages
# Installation (macOS with Homebrew)
brew install bat exa fd ripgrep fzf htop ncdu tldr
# Usage examples
bat README.md # Syntax highlighted file content
exa -la # Colorful directory listing
fd "*.js" # Find JavaScript files
rg "function" # Search for "function" in files
fzf # Interactive file finder
Text Processing Shortcuts
# grep patterns
grep -r "pattern" . # Recursive search
grep -i "pattern" file # Case insensitive
grep -v "pattern" file # Invert match
grep -n "pattern" file # Show line numbers
grep -A 3 -B 3 "pattern" file # Show context
# sed shortcuts
sed 's/old/new/g' file # Replace all occurrences
sed -i 's/old/new/g' file # Replace in-place
sed '1d' file # Delete first line
sed '/pattern/d' file # Delete lines matching pattern
# awk shortcuts
awk '{print $1}' file # Print first column
awk -F',' '{print $2}' file # Use comma as delimiter
awk '/pattern/ {print}' file # Print lines matching pattern
Debugging and Profiling
Browser Performance Tools
# Performance profiling
Cmd/Ctrl + Shift + P # Performance tab
Cmd/Ctrl + Shift + I # DevTools
Cmd/Ctrl + Shift + M # Mobile view
# Network debugging
Cmd/Ctrl + Shift + E # Network tab
Disable cache # In Network tab settings
Throttling # Simulate slow connections
Node.js Debugging
# Debug with Chrome DevTools
node --inspect app.js
node --inspect-brk app.js # Break on first line
# Debug with VS Code
# Add to launch.json:
{
"type": "node",
"request": "launch",
"name": "Debug Node.js",
"program": "${workspaceFolder}/app.js"
}
Python Debugging
# pdb debugger
import pdb; pdb.set_trace() # Set breakpoint
python -m pdb script.py # Run with debugger
# pdb commands
h # Help
l # List current code
n # Next line
s # Step into
c # Continue
p variable_name # Print variable
pp variable_name # Pretty print
q # Quit
Productivity Configurations
VS Code Settings (settings.json)
{
"editor.fontSize": 14,
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.wordWrap": "on",
"editor.minimap.enabled": false,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"source.organizeImports": true
},
"terminal.integrated.fontSize": 13,
"workbench.startupEditor": "none",
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 1000,
"git.autofetch": true,
"git.confirmSync": false
}
Git Configuration for Productivity
# Global Git configuration
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.last 'log -1 HEAD'
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
# Auto-completion (add to ~/.bashrc or ~/.zshrc)
# For bash:
source /usr/share/bash-completion/completions/git
# For zsh with oh-my-zsh:
plugins=(git npm docker docker-compose)
Custom Productivity Scripts
Quick Project Setup
#!/bin/bash
# save as ~/bin/new-project
project_name=$1
if [ -z "$project_name" ]; then
echo "Usage: new-project <project-name>"
exit 1
fi
mkdir "$project_name"
cd "$project_name"
# Initialize git
git init
echo "node_modules/\n.env\n.DS_Store" > .gitignore
# Initialize npm
npm init -y
# Basic package.json updates
npm install --save-dev eslint prettier
npm install express
echo "Project $project_name created successfully!"
code . # Open in VS Code
Development Environment Switcher
#!/bin/bash
# save as ~/bin/dev-env
case $1 in
"node")
nvm use node
echo "Switched to Node.js"
;;
"python")
source ~/venv/bin/activate
echo "Activated Python virtual environment"
;;
"docker")
docker-compose up -d
echo "Started Docker development environment"
;;
*)
echo "Usage: dev-env [node|python|docker]"
;;
esac
Related Documents
- Command Reference - Comprehensive command listings
- Git Commands - Git-specific command reference
- Docker Commands - Container management commands
- Environment Setup - Environment configuration guide
Last Updated: 2025-01-20 Tools Required: IDE/Editor, Terminal, Browser DevTools Team Contacts: Tech Lead for productivity recommendations, Frontend/Backend Leads for technology-specific shortcuts