Adding user settings

This commit is contained in:
Martin Karkowski 2020-12-31 13:18:12 +01:00
parent 578e98aea0
commit cc6d72e433

View File

@ -1,33 +1,45 @@
# 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
code --install-extension
code --install-extension
code --install-extension
code --install-extension
```
# Configure Extensions:
## vscode-author-generator:
To configure the addon perform the following steps:
- `Preferences` -> `Settings` to add your own settings
- `author-generator.author` author name, will replace `[author]` in your `*.tpl` file
- `author-generator.email`. author email, will replace `[email]` in your `*.tpl` file
- `author-generator.dateFormat` will change your date format(default format is `YYYY-MM-DD HH:mm:ss`)
```
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)
# 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):
```json
{
"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.fixAll": true
"source.organizeImports": true
}
```
},
"editor.formatOnSave": true
}
```