- Snippets
- What we’ll cover
- How code snippets are manage by VS Code
- How to create and use custom snippets
- Resources
- Pro Tips
- Create snippets for the code that you write often, using tab stops to dynamically fill in segments.
- What we’ll cover
- Working with Markdown
- What we’ll cover
- How to write and preview Markdown in VS Code
- Markdown extension with extra shortcuts for working with Markdown
- Resources
- Pro Tips
- The best Github repositories contain a detailed ReadMe.md file. Use VS Code to create your ReadMe files along with development.
ctrlCmd+ Shift + V
– open markdown previewCmd + Shift + K V
|Ctrl + K + V
– open markdown preview side by side
- What we’ll cover
- Organizing Code
- What we’ll cover
- Recognizing and removing unused variables
- Organizing import statements
- Refactoring code to a new file
- Using the highlighted indent guide
- Code folding
- Renaming variables
- Pro Tips
Shift + Alt + F
– format documentctrlCmd + .
– to show available code actionsCommand Palette
-> Organize Imports – organize importsctrlCmd + /
– toggle comment linectrlCmd + Option [
- minimize coding folding regionctrlCmd + Option ]
- maximize coding folding regionctrlCmd + K ctrlCmd + 0
– minimize all code folding regionsctrlCmd + K ctrlCmd + J
– maximize all code folding regions
- What we’ll cover
- Creating Standard Editor Settings with Editor Config
- What we’ll cover
- How editor config files can be used to establish standard editor settings across multiple editors
- The Editor Config for VS Code extension for VS Code to recognize and respect editor config files
- Creating an editor config file to override VS Code settings and automatically format code on save
- Resources
- Pro Tips
- Tabs vs Spaces (and so on and so on)… just pick what works for you and your team
- What we’ll cover
- Formatting Code with Prettier
- What we’ll cover
- How to install Prettier extension for VS Code
- Creating a Prettier config or customizing Prettier settings for formatting code
- Manually and automatically format code
- Resources
- Pro Tips
- Find a configuration that works you and stick with it
- What we’ll cover
- Linting and Formatting JavaScript Code with ESLint
- What we’ll cover
- How to install the ESLint package
- How to create an ESLint configuration file and/or the install and customize ESLint extension
- Manually and automatically format code
- Resources
- Pro Tips
- Find a configuration that works you and stick with it
- What we’ll cover