My preferred Editorconfig which I use between my projects.
I recommend using this config with my Prettier config. They are fully compatible between themselves.
This config is in the .editorconfig
file.
Download Editorconfig template to your project with degit
:
npx degit socnik/my-editorconfig/.editorconfig .editorconfig
Install VSCode extension for Editorconfig integration.
Add Editorconfig VSCode extension to workspace recommendations:
// .vscode/extensions.json
{
"recommendations": [
// ...
"editorconfig.editorconfig",
// ...
],
}
Add Editorconfig VSCode extension to your Devcontainer
:
// .devcontainer/devcontainer.json
{
// ...
"customizations": {
// ...
"vscode": {
"extensions": [
// ...
"editorconfig.editorconfig",
// ...
],
},
// ...
},
// ...
}
Setup Prettier with my config. If you want to do it, follow the instructions in socnik/my-prettier-config repository.
All ready!