Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 1.28 KB

tips-and-tricks.md

File metadata and controls

27 lines (23 loc) · 1.28 KB

Tips and Tricks for VsCode

  • ctrl-[] - indent or outdent block
  • ctrl-/ - toggle comment on block
  • ctrl-l - select current line
  • Alt-up/down moves current line up or down
  • ctrl-shift-up/down adds new cursor above/below
  • ctrl-L - cursor on all occurrences of this word
  • ctrl-F2 - same.
  • ctrl-alt-- - go to previous position
  • ctrl-click - extra cursor at click point (note:modified editor.multiCursorModifier)
  • F2 - rename (couldn't get to work?)
  • gd jump to definition
  • gq - on a visual selection reflow and wordwrap blocks of text, preserving commenting style. Great for formatting documentation comments.
  • gb - adds another cursor on the next word it finds which is the same as the word under the cursor.
  • gh - equivalent to hovering your mouse over wherever the cursor is. Handy for seeing types and error messages without reaching for the mouse!
  • ctrl-P - quick open menu
  • ctrl-Shift-M - Toggle Status Bar expansion (F8 to cycle through errors)
  • ctrl-k z - Toggle Zen Mode
  • ctrl-\ - Split screen on same file, ctrl-1, ctrl-2 to switch windows

Markdown

  • ctrl-shift-v - open markdown preview window
  • ctrl-k v - open side-by-side preview

from here only down to "Intellisense".