antiboredom / p5.vscode

A VS Code extension to generate new p5.js project files.
Other
52 stars 15 forks source link

Suggestion: provide .vscode/settings.json for consistent indentation #44

Open rvanswieten opened 2 years ago

rvanswieten commented 2 years ago

The sketch.js file that is generated by the extension has nice 2 space indentation. For consistency with new vscode users, you could consider adding a .vscode/settings.json to make sure all javascript files are treated with 2 spaces. Standard, a fresh vscode installation with default settings will use 4 space indentation for new javascript files.

An alternative option would be to include an .editorconfig file according to the specs. This will make the project more portable to other IDE's and editors. However, vscode requires an extra extension to use .editorconfig files.