I want one tab equals to 2spaces in js files but for css files I want 1tab equal to 4spaces.
create a .prettierrc file with
{
"tabWidth": 2,
"overrides": [
{
"files": "*.css",
"options": {
"tabWidth": 4
}
}
]
}
@CiGit Is there anyway to create global .rc file instead of .rc file in each project?
Sort of
Create it at /.prettierrc.
keep in mind it will read the first encountered .prettierrc upwards
Or if you keep all your projects in /Users/me/Projects create /Users/me/Projects/.prettierrc
There is no concept of project. Only a file system tree
Ok, that works. thanks @CiGit !
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
create a
.prettierrcfile with