diff --git a/.vscode/settings.json b/.vscode/settings.json index e2f79e54b..592fc58af 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,23 @@ { + /** + * Formatting. + */ + "editor.defaultFormatter": "dbaeumer.vscode-eslint", + "[html]": { + "editor.defaultFormatter": "vscode.html-language-features", + }, + "editor.formatOnSave": true, + "eslint.format.enable": true, + "html.format.endWithNewline": true, + "html.format.wrapLineLength": 140, + "files.trimFinalNewlines": true, + "files.insertFinalNewline": true, + "files.trimTrailingWhitespace": true, + + /** + * Config files. + */ "files.associations": { "moodle.config.json": "jsonc", "moodle.config.*.json": "jsonc",