nope/PREPARE_VSCODE.md

1.3 KiB

Install VS Code Extensions:

  1. Open a cmd and install perform:
code --install-extension oouo-diogo-perdigao.docthis
code --install-extension edwardhjp.vscode-author-generator
code --install-extension dbaeumer.vscode-eslint
code --install-extension rvest.vs-code-prettier-eslint

Configure Extensions:

vscode-author-generator:

  • Copy the .vscode\ts.tpl to %USERPROFILE%\.vscode\extensions\{edwardhjp.vscode-author-generator-version} (Replace {edwardhjp.vscode-author-generator-version} with the currently installed version)

vscode-eslint

  • run npm install -g eslint
  • executing the command ESLint: Manage Library Execution from the command palette by pressing CTRL+SHIFT+P
  • Edit the User-Settings: The setting below turns on Auto Fix for all providers including ESLint:

User Settings.json

  • open the User-Settings Json
  • add the following (Adapt your name and mail):
{
  "author-generator.author": "Forename Surename", // <-- Edit here
  "author-generator.email": "mail", // <-- Edit here
  "author-generator.updateOnSave": true,
  "editor.codeActionsOnSave": {
    "source.fixAll": true
  },
  "[typescript]": {
    "editor.defaultFormatter": "rvest.vs-code-prettier-eslint",
    "editor.codeActionsOnSave": {
      "source.organizeImports": true
    }
  },
  "editor.formatOnSave": true
}