Contents

Prettier — code formatting

Automatically formats code on save. No more style debates on the team.

After install, add to settings.json:

{
  "editor.formatOnSave": true,
  "editor.defaultFormatter": "esbenp.prettier-vscode"
}

Create .prettierrc in the project root for custom settings: line width, single/double quotes, semicolons.

GitLens — Git superpowers

Shows who, when and why wrote each line right inside the code (blame annotations). Hover over a line — see the last commit, author and message. Invaluable when reading someone else's code. (Branching practices themselves are in the Git flow article.)

Error Lens — errors right on the line

Displays errors and warnings next to the line of code — no need to look at the bottom panel. Saves a lot of time.

Path Intellisense — path autocomplete

Automatically completes file paths in imports. Indispensable in projects with deep folder structures.

Thunder Client — REST client inside VS Code

A lightweight Postman alternative inside the editor. Supports collections, environment variables, request history.

Auto Rename Tag

Rename an opening HTML tag — the closing one updates automatically.

Settings worth enabling right away

{
  "editor.renderWhitespace": "boundary",
  "editor.fontFamily": "'Fira Code', monospace",
  "editor.fontLigatures": true,
  "files.autoSave": "onFocusChange",
  "editor.rulers": [80]
}

Quick way to open settings.json: Ctrl+Shift+P -> "Open User Settings (JSON)". The other half of productivity is the terminal and its shortcuts.

Share: