diff --git a/VSCode/PrettierApex/.prettierrc b/VSCode/PrettierApex/.prettierrc new file mode 100644 index 0000000..99567fe --- /dev/null +++ b/VSCode/PrettierApex/.prettierrc @@ -0,0 +1,15 @@ +{ + "trailingComma": "none", + "printWidth": 150, + "plugins": ["prettier-plugin-apex"], + "overrides": [ + { + "files": "**/lwc/**/*.html", + "options": { "parser": "lwc" } + }, + { + "files": "*.{cmp,page,component}", + "options": { "parser": "html" } + } + ] +} diff --git a/VSCode/PrettierApex/settings.json b/VSCode/PrettierApex/settings.json new file mode 100644 index 0000000..45dc345 --- /dev/null +++ b/VSCode/PrettierApex/settings.json @@ -0,0 +1,12 @@ +{ + "search.exclude": { + "**/node_modules": true, + "**/bower_components": true, + "**/.sfdx": true + }, + "editor.defaultFormatter": "esbenp.prettier-vscode", + "[apex]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "notebook.defaultFormatter": "esbenp.prettier-vscode" +} \ No newline at end of file