Specify jsbeautify settings via the Visual Studio Code settings
See original GitHub issue- Operating System (+Version): OSX 10.11.6
- VS Code Version: 1.9.1
- beautify Version: 0.8.0
Provide the settings you use: (VS Code workspace and user settings, .jsbeautifyrc, .editorconfig) eg.: VS Code:
// Place your settings in this file to overwrite the default settings
{
"vsicons.projectDetection.disableDetect": true,
"editor.scrollBeyondLastLine": false,
"editor.rulers": [
100
],
"files.insertFinalNewline": true,
"npm-intellisense.scanDevDependencies": true,
"npm-intellisense.importLinebreak": "",
"auto-close-tag.activationOnLanguage": [
"html",
"xml",
"php",
"javascriptreact",
"vue"
]
}
.jsbeautifyrc
- None
Is it possible to specify actual jsbeautify settings (as they would be within .jsbeautifyrc
) but actually in the Visual Studio Code settings.json
for this extension? If it is I can’t seem to get it to work. If this option doesn’t exist would it be possible to add that? I almost feel like beautify.config
setting could be either a string
for a path or an object
for actual config settings, so for example:
{
"js": {
"indent_size": 5
},
"css": {
"indent_size": 4
},
"html": {
"indent_size": 3
},
"eol": "\r\n",
"indent_with_tabs": false,
"indent_size": 2
}
I am not sure but from quickly looking at the code it seems like it may not be too much work. Just adding additional check for config detection and then probably refactoring some of the setup code once we have config settings?
Any thoughts? I can try and do a PR if this is acceptable for the design / vision of the extension.
Thanks.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (5 by maintainers)
Do you like it #104 😄
PR applied and version 0.8.1 published.