Skip to content

Instantly share code, notes, and snippets.

@daveydee33
Last active December 17, 2019 02:10
Show Gist options
  • Select an option

  • Save daveydee33/037e3ab0dd22177ce3be01756e076d38 to your computer and use it in GitHub Desktop.

Select an option

Save daveydee33/037e3ab0dd22177ce3be01756e076d38 to your computer and use it in GitHub Desktop.
Some VSCode shortcuts and notes
- `ctrl+j` to open/close/focus on the integrated terminal.
This is good to quickly switch cursor from the text editor to the terminal without using the mouse
- use “clo” instead of “clg”.
This comes from one of my snippets extensions
- `anfn` or `nfn` to create arrow functions
This comes from a snippets extension
https://marketplace.visualstudio.com/items?itemName=xabikos.JavaScriptSnippets
- `Peacock` extension for colors, especially for separate colors when working on multiple project windows
`f1` —or— `cmd+shift+P` — type Peacock random.
- can re-use a VSCode win dow with ‘code .’
- delete current line cmd+shift+K
Or maybe I can map keys / key-binding so I can use something like "cmd+d" or something?
https://code.visualstudio.com/docs/getstarted/keybindings#_how-to-add-a-key-binding-to-an-action-for-example-add-ctrld-to-delete-lines
- `cmd+K, m` — set syntax language mode
This is useful for a new unsaved file where the language hasn't been set according to the filename extension.
# Some helpful VSCode setttings I configure
- highlight modified files (unsaved files)
# VSCode Extensions
- `Import Cost` - this will show how much weight (kb) a module will add with the import statement
- `Peacock` - for window colors, especially helpful to set different colors for different projects, multiple windows, etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment