Reputation: 6857
Some of our team uses Atom and some of our team uses VSCode. My issue is with code formatting via Atom Beautify vs VSCode formatting. They yield results that are inconsistent between each other, which is heck for version control and consistency within our team and style guides. Is there are way to attain consistency with formatting between these two IDEs?
Upvotes: 0
Views: 1262
Reputation: 12872
EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs. When a project contains an .editorconfig
file, the editor's preferences will be ignored, so they'll be intact for other projects. Plugins are available for Atom, Visual Studio Code and many other editors.
Upvotes: 1
Reputation: 50278
You can install the Beautify extension, which gives you more control over the settings.
Alternatively, you could talk to your team about adopting Prettier via this extension, which is a more straightforward, but also more opinionated formatter.
Upvotes: 1