Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- VSCode Favorite Tricks and Shortcuts
- ===
- # Editor
- | Shortcut | action |
- | -------- | ------------------------ |
- | ⇧ ⌥ F | Format Entire Code |
- | ⌘K ⌘F | Format Current Selection |
- | ⌥ ⌘ [ | Fold code block |
- | ⌥ ⌘ ] | Unfold Code block |
- | ⌘K ⌘0 | Fold everything |
- | ⌘K ⌘J | Unfold everything |
- # Tricks
- | Trick | Steps |
- | ----------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
- | 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 |
- | Type Checking | `// @ts-check` comment on top of file |
- ---
- ⇧ = `shift`
- ⌘ = `command`
- ⌥ = `option/alt`
Add Comment
Please, Sign In to add comment