Skip to content

Instantly share code, notes, and snippets.

@tacamDev
Last active January 12, 2023 11:58
Show Gist options
  • Save tacamDev/7c99b50528688d41e624a2eb41889689 to your computer and use it in GitHub Desktop.
Save tacamDev/7c99b50528688d41e624a2eb41889689 to your computer and use it in GitHub Desktop.

VSCode Shortcuts

Shortcut pdf link

Highlight

  • shift + ctrl + <- highlight the whole symbol
  • shift + Home highlight everything to the left
  • shift + End highlight everything to the right
  • ctrl + a highlight everything
  • ctrl + d highlight symbol in cursor (press again to highlight the next similar symbol)
  • ctrl + l highlight current line

Cursor

  • alt + Click create multiple cursors
  • alt + down move a line of code down (up does the opposite)
  • alt + left move back to last cursor place (mouse forward and back do the same)
  • ctrl + <- moves back a word
  • ctrl + Home move the cursor to the bottom of the file
  • ctrl + End move the cursor to the top of the file
  • Home move cursor to the first line
  • End move cursor to end line
  • Page Up moves the cursor a frame up
  • Page Down moves the cursor a frame down

Extensions

  • ctrl + space show intellisense autocomplete list
  • ctrl + . quick fix
  • ctrl + . fix spelling with Code Spell Checker extension
  • crtl + k v preview .md files

Editing

  • win + v copy clipboard
  • ctrl + c copy (if nothing is highlighted copy the whole line)
  • ctrl + x cut (if nothing is highlighted cut the whole line)
  • ctrl + v paste
  • ctrl + z undo
  • ctrl + y redo
  • alt + down move the whole line down (up does the opposite)
  • shift + alt + down copy the whole line down (up does the opposite)
  • ctrl + ] indent line ([ does the opposite)

Windows

  • alt + o switch between .h and .cpp files
  • ctrl + \ open split window
  • ctrl + , open settings
  • ctrl + n create a file
  • ctrl + w close a file
  • ctrl + b toggle sidebar
  • ctrl + ~ toggle terminal
  • ctrl + p open command prompt (open any file)
  • shift + ctrl + p open command list
  • shift + ctrl + . open method list

Search

  • ctrl + f find in current file
  • ctrl + shift + f find in all files
  • ctrl + g find line in current file (ex :54 goes to line 54)
  • F3 find next
  • shift + F3 find previous
  • ctrl + p search for a file

PlatformIO

  • ctrl + alt + b build project
  • ctrl + alt + u upload project
  • ctrl + alt + s open serial monitor
  • F5 start debug

Debugger

  • F5 pause/continue
  • F10 step over
  • F11 step into
  • shift + F11 step out
  • shift + F5 stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment