Skip to content

Free Your Hands with Keyboard Shortcuts

Common Shortcuts

System Level (Windows 10)

ShortcutFunction
Win RRun
Win EFile Explorer
Win Shift SScreenshot
Win TabOpen Task View
Win DShow Desktop (hide all apps)
Win SOpen Search
Win RightSplit screen left/right
Win UpMaximize current app
Win DownRestore down
Alt F4Close current app
Alt ESCMinimize current app
Alt TabSwitch apps clockwise
Alt Shift TabSwitch apps counter-clockwise

Common Editing Operations

ShortcutFunction
Ctrl ASelect all
Ctrl XCut
Ctrl CCopy
Ctrl VPaste
Ctrl ZUndo
Ctrl YRedo

Browser

Standard shortcuts for Chrome-like browsers can be found in Microsoft's official guide. Some commonly used ones are listed below:

ShortcutFunction
Ctrl FSearch current page content
Ctrl RRefresh current page
Ctrl Shift RHard refresh (ignore cache)
Ctrl Shift IOpen Developer Tools
Ctrl TNew tab
Ctrl WClose current tab
Ctrl Shift WClose current window
Ctrl NNew window
Ctrl Shift NNew InPrivate window
Ctrl LEdit current URL
Ctrl TabSwitch tabs clockwise
Ctrl Shift TabSwitch tabs counter-clockwise
Ctrl Shift KDuplicate tab

Some browser shortcuts are shared with VS Code, such as closing tabs, switching tabs, and reopening recently closed tabs.

VS Code

ShortcutFunction
CtrlJump across words
Ctrl ·Open integrated terminal
Ctrl NNew file
Ctrl Shift NNew window
Ctrl POpen file
Ctrl Shift PCommand Palette
Ctrl FSearch in file (Enter/Shift Enter to navigate)
Ctrl Shift FGlobal search (auto-copies current selection)
Ctrl DFind and select
Ctrl GGo to line
Ctrl BToggle sidebar
Ctrl Shift EOpen sidebar Explorer
Ctrl Shift XOpen sidebar Extensions
Alt UpMove current line up (Down likewise)
Alt Shift UpCopy current line above (Down likewise)
Ctrl |Split right
Ctrl Alt RightMove current tab right

Git Bash

General operations:

Ctrl+Z in commands can send a task to the background;

jobs -l lists current tasks, combined with fg [jobnumber] and bg [jobnumber] for task scheduling.

ShortcutFunction
Ctrl + aMove to beginning of line
Ctrl + eMove to end of line
Ctrl + uDelete from cursor to line start
Ctrl + kDelete from cursor to line end
Ctrl + wDelete from cursor to word start
Alt + dDelete from cursor to word end
Alt + fMove forward by word (right)
Alt + bMove backward by word (left)
Alt + uUppercase from cursor to end
Alt + lLowercase from cursor to end

Vim

A powerful editor with three modes: command, insert, and visual.

Initial Setup

  1. vim ~/.vimrc — enter the .vimrc configuration file
  2. Add the following configuration in .vimrc:
bash
set number # Show line numbers
set syntax=on # Enable syntax highlighting

Common Operations

Command Mode

Press Esc in any mode to enter command mode. This is Vim's default mode.

Navigation ShortcutFunction
wNext word
bPrevious word
Shift + GEnd of file
Shift ^Beginning of line
Shift $End of line
:[%1, %2]From line %1 to %2
Action ShortcutFunction
uUndo last action
.Repeat last action
nMove cursor
dCut
ddCut entire line
yCopy
yyCopy entire line
pPaste
Shift + GEnd of file
<<Indent left

By combining position + count + action from above, you can perform various rapid text operations:

Combined ShortcutFunction
dwCut next word
dbDelete previous word
dggCut from cursor to file start
d + Shift + GCut from cursor to file end
d + Shift ^Cut to line start
d3dQuick cut 3 lines
d121ggCut to line 121
:1,5dCut lines 1-5
:1,5 m/co 10Move/copy lines 1-5 to line 10

Additionally, there are window-level shortcuts:

Window ShortcutFunction
wSave
qQuit, add ! to force
i / a / oEnter insert mode at cursor / after cursor / new line
vEnter visual mode
:regView system clipboard, usually combined with p for quick paste
!lsUse ! to call bash commands, e.g., ls

Combined with window-level shortcuts, even more operations are possible:

Combined ShortcutFunction
"1pPaste clipboard entry "1
:sp %filenameOpen %filename above
:vs %filenameOpen %filename to the right
Ctrl + w + arrowSwitch editor after split
:e %filenameSwitch current window to %filename
!lsUse ! to call bash commands, e.g., ls

vim usage could fill an entire chapter on its own. We won't expand on visual mode and insert mode here.