VirtualWhirlwind / vscode-povray2

A Visual Studio Code extension to allow you to edit Persistence of Vision Ray Tracer (POV-Ray) Scene files and render them using the integrated terminal
MIT License
6 stars 3 forks source link

An .editorconfig would help with code style #16

Closed bentorkington closed 2 years ago

bentorkington commented 2 years ago

The codebase has a mixture of formatting, sometimes four space tabs, sometimes two. On shared projects, it can help to set a .editorconfigfile in the root which specifies several standard formatting choices, which is well supported by many editors in addition to VSCode.

This also helps prevent whitespace commits whenever contributors change parts of the code, applying (perhaps inadvertently) their own tab preferences.

kennebel commented 2 years ago

I put the .editorconfig in, and it tweaked the main file. I'll touch the rest of the files over time and get them all in line. Thanks for the suggestion! I'm a huge fan of system enforced consistency.