Skip to content

dprint with a global user fallback config in vscode/ium #114

@EKliptus

Description

@EKliptus

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 :

  1. I can use dprint cli with --plugins or --config flag
  2. 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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions