I think I found the solution. When I create the .editorconfig file with right-click on the folder structure sidebar in Visual Studio Code and select Generate .editorconfig (thus letting the plugin to create it), it works.
Click on the empty area below the files:

I think I found the solution. When I create the .editorconfig file with right-click on the folder structure sidebar in Visual Studio Code and select Generate .editorconfig (thus letting the plugin to create it), it works.
Click on the empty area below the files:

An update for croraf's answer.
Step 1:
Install the EditorConfig for VS Code extension from the marketplaces.
Step 2:
after installing the extension, right click inside the project explorer window (don't right click on any of the files and folders, just outside them)
Step 3:
click on the "Generate .editorconfig" option and .editorconfig fill will be generated

I think I found the solution. When I create the .editorconfig file with right-click on the folder structure sidebar in Visual Studio Code and select Generate .editorconfig (thus letting the plugin to create it), it works.
Click on the empty area below the files:

I'm confused about something that seems so basic...
Let's say you're working on a TypeScript project with a prettier config set to `tabWidth: 4` (the team's preference). In addition to that, I have an `.editorconfig` file that specifies a tab width of 2 spaces (my preference). If everything is configured correctly, when I open a `.ts` file that has been saved with a tab width of 4, should EditorConfig _automatically_ reformat that file to my desired tab width? If so - it's not doing that.
Isn't one of the benefits of EditorConfig supposed to be that it allows individual developers to see their desired tab, etc... preferences in their IDE while allowing them to save their work in a format that continues to respect the team's preference?