Developer Shortcuts

Keyboard Shortcuts Reference

Master the essential keyboard shortcuts for git, terminal, and VSCode. Work faster, context-switch less, and build better software.

Git Commands

Essential version control commands

git status

Check what's changed

git add .

Stage all changes

git add -p

Stage changes interactively

git commit -m 'msg'

Commit with message

git commit --amend

Amend last commit

git push

Push to remote

git pull

Pull latest changes

git checkout -b name

Create new branch

git switch branch

Switch to branch

git branch -d name

Delete branch

git log --oneline

View commit history

git diff

See unstaged changes

git stash

Stash current changes

git stash pop

Apply stashed changes

git reset HEAD~1

Undo last commit (keep changes)

git rebase -i HEAD~n

Interactive rebase last n commits

git cherry-pick hash

Apply specific commit

git restore file

Discard file changes

VSCode Shortcuts

Navigate and edit code faster

Cmd/Ctrl + P

Quick file open

Cmd/Ctrl + Shift + P

Command palette

Cmd/Ctrl + Shift + F

Search across files

Cmd/Ctrl + D

Select next occurrence

Cmd/Ctrl + Shift + L

Select all occurrences

Alt + Click

Multiple cursors

Cmd/Ctrl + /

Toggle comment

Alt + Up/Down

Move line up/down

Shift + Alt + Up/Down

Copy line up/down

Cmd/Ctrl + Shift + K

Delete line

Cmd/Ctrl + B

Toggle sidebar

Cmd/Ctrl + `

Toggle terminal

Cmd/Ctrl + Shift + E

Show explorer

Cmd/Ctrl + Shift + G

Show source control

F12

Go to definition

Shift + F12

Show references

F2

Rename symbol

Cmd/Ctrl + Space

Trigger suggestions

Cmd/Ctrl + Shift + O

Go to symbol in file

Cmd/Ctrl + T

Go to symbol in workspace

Cmd/Ctrl + K, Cmd/Ctrl + 0

Fold all code

Cmd/Ctrl + K, Cmd/Ctrl + J

Unfold all code

Terminal Shortcuts

Command line productivity

Ctrl + C

Kill current process

Ctrl + Z

Suspend current process

Ctrl + D

Exit shell or EOF

Ctrl + L

Clear screen

Ctrl + R

Search command history

Ctrl + A

Move to line start

Ctrl + E

Move to line end

Ctrl + U

Delete to line start

Ctrl + K

Delete to line end

Ctrl + W

Delete previous word

cd -

Go to previous directory

!!

Repeat last command

!$

Use last argument

mkdir -p path/to/dir

Create nested directories

rm -rf dir

Remove directory recursively

ls -lah

List all files with details

grep -r 'text' .

Search text in files

find . -name 'pattern'

Find files by name

cat file | grep text

Pipe output through grep

history

Show command history

alias name='command'

Create command alias

General Shortcuts

Universal keyboard shortcuts

Cmd/Ctrl + C

Copy

Cmd/Ctrl + V

Paste

Cmd/Ctrl + X

Cut

Cmd/Ctrl + Z

Undo

Cmd/Ctrl + Shift + Z

Redo

Cmd/Ctrl + F

Find in page

Cmd/Ctrl + S

Save file

Cmd/Ctrl + W

Close tab/window

Cmd/Ctrl + Tab

Switch between tabs

Cmd/Ctrl + Shift + T

Reopen closed tab

Cmd/Ctrl + N

New file/window

Cmd/Ctrl + A

Select all