Skip to content

Instantly share code, notes, and snippets.

@ross-u
Created January 14, 2021 15:31
Show Gist options
  • Save ross-u/7a1a4b4ae72847251563c047332e4633 to your computer and use it in GitHub Desktop.
Save ross-u/7a1a4b4ae72847251563c047332e4633 to your computer and use it in GitHub Desktop.
M1 - VSCode extensions & Prettier Setup

M1 - VSCode Extensions


VSCode Extensions:


Prettier Setup

  • Install Prettier - Code Formatter VSCode extension
  • Remove Beautify and JSHint extensions from VSCode if you have them installed, as they may cause issues.
  • Change the VSCode settings to enable Format On Save:
    • (Mac) CMD + Shift + P or (Linux/Windows) Ctrl + Shift + P
    • Search for and select Open Settings (UI)
    • Once in the Settings panel, search for: Format on save
    • Enable option ☑️ Editor: Format On Save
    • ..
    • When done, search for: Default formatter
    • Find the option Editor: Default Formatter and from the dropdown select esbenp.prettier-vscode
    • Restart your VSCode
    • Done !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment