Search code examples
typescriptvisual-studio-codewebstorm

How to set same code formatting styles to WebStorm and VSCode?


Our team uses both VSCode and WebStorm for development, so need to create a same code formatting style for both IDEs.


Solution

  • I would recommend formatting your code with Prettier. There's a plugin for VSCode and WebStorm. If you add Prettier as a dependency in package.json (with a specific version) you will make sure that both editors invoke the exact same formatting command.