Skip to content

hw104/vscode-keybindings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 

Repository files navigation

STBBORN VSCODE KEYBOARD SHORTCUTS

Principles

  • Easy to remember.
  • Easy to type. Keep fingers close to home position.
  • For keyboards with the ctrl key next to the a key and the shift and alt(orcmd) keys near each thumb.

Keyboard Shortcuts

ℹ️ For mac, alt is cmd.

Editing

Cursor Moving

  • ctrl + n: ⬆️ Cursor (N)ext Line. Cursor down
  • ctrl + p: ⬇️ Cursor (P)revious Line. Cursor up
  • ctrl + f: ➡️ Cursor (f)orward
  • ctrl + b: ⬅️ Cursor (b)ack
  • ctrl + a: ⬅️⬅️ Cursor line start(=a)
  • ctrl + e: ➡️➡️ Cursor line (e)nd
  • ctrl + l: 🔙 Go to (L)ast Edit Location
  • ctrl + [: Go to Bracket
  • ctrl + v: ⏬ Page down. cursorPageDown

Deletion

  • ctrl + h: Delete left
  • alt + h: Delete left word
  • ctrl + d: Delete right
  • alt + d: Delete right word
  • ctrl + k: Delete All Right
  • alt + k: Delete All Left

Selection

  • ctrl + ;: Expand Selection. editor.action.smartSelect.grow
  • ctrl + shift + ;: Shrink Selection. editor.action.smartSelect.shrink
  • ctrl + ]: Select to Bracket
  • ctrl + space: Start or End Selection
  • ctrl + g: cancelSelection

Copy / Paste

  • ctrl + w: Cut
  • alt + w: Copy
  • ctrl + y: Paste
  • alt + y: Cyclic paste from history with multiclip
  • ctrl + x, y: Select and paste from history with multiclip

File

  • ctrl + x, f: Go to File...
  • ctrl + x, ctrl + f: Open File
  • ctrl + x, s: Save All

Editor

  • ctrl + x, 2: Split Editor Vertically
  • ctrl + x, 3: Split Editor horizontally
  • ctrl + x, o: Focus Next Editor Group
  • ctrl + x, b: Quick Switch Editor in Group
  • ctrl + 0: Close Current Editor
  • ctrl + shift + 0: Close All Editor
  • ctrl + alt + 0: Close Other Editor

IDE Features

Basic rules

Common

  • ctrl + /: Suggest
  • ctrl + r: (R)ename Symbol
  • ctrl + s: (S)earch
  • ctrl + c: Toggle Line (C)omment
  • ctrl + shift + c: Toggle Block (C)omment

Code Operations

  • ctrl + shift + r: (R)efactor...
  • ctrl + shift + l: (L)int, i.e. Format Document
  • ctrl + shift + f: Quick (F)ix...
  • ctrl + shift + s: (S)ource ACtion...
  • ctrl + shift + o: Organize Imports

Jump

  • ctrl + alt + b: Go (B)ack
  • ctrl + alt + f: Go (F)orward
  • ctrl + alt + g: (G)o to Definition
  • ctrl + alt + d: Go to (D)eclaration
  • ctrl + alt + i: Go to (I)mplementations
  • ctrl + alt + r: Go to (R)eferences
  • ctrl + alt + t: Go to (T)ype Definition
  • ctrl + alt + e: Go to Next Problem ((E)rror, Warning, Info)
  • ctrl + alt + shift+ e: Go to Next Problem in Files((E)rror, Warning, Info)
  • ctrl + alt + s: Go to (S)ymbol in Editor...
  • ctrl + alt + shift + s: Go to (S)ymbol in Workspace...
  • ctrl + alt + l: Go to (L)ast Edit Location
  • ctrl + alt + e: Go to (E)ditor
  • ctrl + alt + j: Open Breadcrumbs and Selet and (J)ump
  • ctrl + alt + n: Go to (n)ext edge of current indent block
  • ctrl + alt + n: Go to (p)rev edge of current indent block

Inspects

  • alt + shift + d: Peek (D)efinition
  • alt + shift + i: Peek (I)mplementations
  • alt + shift + r: Peek (R)eferences
  • alt + shift + t: Peek (T)ype Definition
  • alt + shift + h: Show (H)over
  • alt + shift + p: (P)arameter Hints
  • alt + shift + c: Show (C)all Hierarchy

Folding

  • ctrl + .: Fold
  • ctrl + ,: Unfold
  • ctrl + shift + .: Fold All
  • ctrl + shift + ,: Unfold All
  • ctrl + alt + .: Fold Recursively
  • ctrl + alt + ,: Unfold Recursively

Views / Focus

  • alt + 0: Toggle Side Bar
  • alt + shift + 0: Toggle Panel Bar
  • alt + 1: Focus File Explorer
  • alt + 2: Focus Comment Anchors
  • alt + 3: Focus Search View
  • alt + 4: Toggle Debug Console
  • alt + 5: Toggle Problems
  • alt + 8: Toggle Terminal
  • alt + 9: Toggle Source Control
  • alt + e: Focus (E)ditor

Git Operations

  • ctrl + x, 4: View Git Graph (git log)
  • ctrl + x, 5: Git Checkout to...
  • ctrl + x, 6: Git Fetch (Prune)
  • ctrl + x, 7: Git Pull
  • ctrl + x, 8: Git Commit All
  • ctrl + x, 9: Git Push
  • ctrl + x, 0: Git Discard All Changes

Misc

  • ctrl + x, r: Run Debugging
  • ctrl + x, t: Run Task
  • alt + x: Show and Run Commands
  • shift, shift: Show and Run Commands

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published