We can install dprint as extension and add global user settings like :
"editor.defaultFormatter": "dprint.dprint",
"editor.formatOnSave": true,
// or specify per language, for example
"[javascript]": {
"editor.defaultFormatter": "dprint.dprint",
"editor.formatOnSave": true
},
But this can't format json or use other plugins formatter !
I need a global formatter with general settings without need to add a dprint config file in any workspace (also standalone file open with vscode)
Is there a method to use dprint with a fallback / generic config to use plugin ?
I see :
- I can use dprint cli with --plugins or --config flag
- there are some configs like
dprint.path available in .vscode/settings.json
Is there is a method to configure the default dprint command ? like dprint.path :
// dprint fallback command when no config found in workspace
"dprint.defaultCmd" : "dprint --plugins xx"
// dprint default config when no config found in workspace
"dprint.defaultConfigPath":"path to default generic config"
Thank you, maybe a feature ?
We can install dprint as extension and add global user settings like :
But this can't format json or use other plugins formatter !
I need a global formatter with general settings without need to add a dprint config file in any workspace (also standalone file open with vscode)
Is there a method to use dprint with a fallback / generic config to use plugin ?
I see :
dprint.pathavailable in .vscode/settings.jsonIs there is a method to configure the default dprint command ? like
dprint.path:Thank you, maybe a feature ?