antiboredom/p5.vscode

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

Opened this issue · 0 comments

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.