Home > Net >  How to configure code formatters Beautify, Prettier, per project in VS Code
How to configure code formatters Beautify, Prettier, per project in VS Code

Time:04-09

Are there features that allow formatter configuration to be specific per project in VS Code? As in, I have one project I want indenting, and another project where I don't want indenting. I feel like I read somewhere that was possible, but I'm not finding it now that I'm searching for it.

I'm specifically using Beautify now because it has more configuration options.

CodePudding user response:

Just use workspace settings, in VS Code you have User settings that are used for every project, and Workspace settings (saved in .vscode/settings.json in the project folder) that are specific to that project.

If you want to share workspace settings with others you can commit .vscode/settings.json.

You can edit both settings directly on the .json files, or through the VS Code settings editor (Files->Preferences->Settings).

  • Related