My project has .editorconfig file with:
[*.{js}]
charset = utf-8
indent_style = space
indent_size = 4
I thought this will force my VS Code to use indent style space with 4 spaces.
I installed EditorConfig for vs code
extension from the list of extensions.
But still nothing, my newly created files don't set automatically the configured space style. What is the problem?
editorconfig with rightclick on the folder structure sidebar in VSCode and select Generate . editorconfig (thus letting the plugin to create it) it works.
In Visual Studio for Mac, you can add an EditorConfig file to your project or solution to enforce consistent coding styles for everyone that works in the codebase. The settings declared in the EditorConfig file take precedence over global Visual Studio for Mac text editor settings.
editorconfig to GitHub or not? It depends. If the files are specific to your project, then it is appropriate to commit them. If they are appropriate for your work flow, then it is not.
I think I found the solution. When I create the .editorconfig
with rightclick on the folder structure sidebar in VSCode and select Generate .editorconfig
(thus letting the plugin to create it) it works.
Click on the empty area below the files:
try
root = true
[*.js]
indent_style = space
indent_size = 4
charset = utf-8
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With