$ ls index/

cheatsheets

VS Code Cheatsheet

$cat cheatsheets/vscode.md

Source Control (Git)

ActionHow
Switch branchClick branch name in bottom-left status bar
Open Source Control panelCmd + Shift + G
Merge branchSource Control → ... → Branch → Merge Branch
Resolve merge conflictsOpen conflicted file → use inline merge editor (Accept Current / Incoming / Both)
PushSource Control → ... → Push, or click sync icon in status bar
Stage fileClick + next to file in Source Control panel
Discard changesRight-click file → Discard Changes

ShortcutAction
Cmd + PQuick open file by name
Cmd + Shift + PCommand palette
Cmd + BToggle sidebar
Cmd + \Split editor
Cmd + WClose tab
Ctrl + TabCycle through open tabs
Cmd + Shift + EFocus file explorer
Cmd + Shift + FSearch across files
Cmd + Shift + HReplace across files

Editing

ShortcutAction
Cmd + DSelect next occurrence of word
Cmd + Shift + LSelect all occurrences
Option + ClickAdd cursor
Cmd + Option + ↑/↓Add cursor above/below
Option + ↑/↓Move line up/down
Shift + Option + ↑/↓Copy line up/down
Cmd + Shift + KDelete line
Cmd + /Toggle line comment
Shift + Option + FFormat document
F2Rename symbol
F12Go to definition
Opt + F12Peek definition
Shift + F12Find all references

Terminal

ShortcutAction
Ctrl + `Toggle integrated terminal
Cmd + Shift + `New terminal
Cmd + KClear terminal

Useful Settings

// settings.json snippets
{
  "editor.formatOnSave": true,
  "editor.tabSize": 2,
  "editor.wordWrap": "on",
  "editor.minimap.enabled": false,
  "files.autoSave": "onFocusChange",
  "terminal.integrated.defaultProfile.osx": "zsh"
}

Let's build something impactful together.

ertughaskan@gmail.com Find me online
Availability
WorkAvailable
RelocationOpen
FreelanceClosed
© 2026 Ertugrul Alex Haskan /cookiesVancouver, BC 🇨🇦

This site uses one optional Google Analytics cookie to see which pages get read. Nothing is set until you choose — cookie details.