Guest User

Untitled

a guest
Oct 16th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. VSCode Favorite Tricks and Shortcuts
  2. ===
  3.  
  4. # Editor
  5.  
  6. | Shortcut | action |
  7. | -------- | ------------------------ |
  8. | ⇧ ⌥ F | Format Entire Code |
  9. | ⌘K ⌘F | Format Current Selection |
  10. | ⌥ ⌘ [ | Fold code block |
  11. | ⌥ ⌘ ] | Unfold Code block |
  12. | ⌘K ⌘0 | Fold everything |
  13. | ⌘K ⌘J | Unfold everything |
  14.  
  15.  
  16. # Tricks
  17.  
  18. | Trick | Steps |
  19. | ----------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
  20. | Refactoring via Extraction: refactor already written code into a separate function or constant to reuse it later | Select the lines you want to refactor out and press ⌘ or click on 💡 icon |
  21. | Type Checking | `// @ts-check` comment on top of file |
  22.  
  23.  
  24.  
  25. ---
  26.  
  27. ⇧ = `shift`
  28.  
  29. ⌘ = `command`
  30.  
  31. ⌥ = `option/alt`
Add Comment
Please, Sign In to add comment