Missing json file settings for Visual Studio Code editor
See original GitHub issueWhere to find the issue
https://github.com/corona-warn-app/cwa-website/blob/master/.vscode/settings.json
Describe the issue
The Visual Studio Code project settings file does not provide any default settings for json
files.
CHANGE_WEBSITE_CONTENT.md says:
- JSON files use 4 space-character soft-tab indentation
- Use a proper JSON formatter after making your changes (e.g. the format document option of VSCode) from time to time
and it leaves it to contributors to set up the corresponding settings.
Suggested change
Modify the Visual Studio Code project settings file to include settings which implement the 4 space-character soft-tab indentation.
Insert the following into .vscode/settings.json
"[json]": {
"editor.detectIndentation": false,
"editor.tabSize": 4,
"editor.insertSpaces": true
}
which will modify the Workspace Settings for editing json files in the corona-warn-app/cwa-website repository with a Visual Studio Code editor.
Possibly
"editor.trimAutoWhitespace": true
should also be added, although this has not been specified as a convention for json files in the repository.
Similarly
"files.insertFinalNewline": true
could also be defined. Again this has not been specified as a repository convention so far.
Visual Studio Code - Reference information
Keybindings for different operating systems, for example: Windows Shift+Alt+F
= Format document.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top GitHub Comments
#1726 is merged, so this issue can now be closed.
@Ein-Tim Thanks for your positive feedback!
This is what I would propose for https://github.com/corona-warn-app/cwa-website/blob/master/.vscode/settings.json if the Open Source Team would like this added.