Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support command to format any file with a default global configuration #13

Open
dsherret opened this issue Apr 25, 2021 · 4 comments
Open
Labels
enhancement New feature or request

Comments

@dsherret
Copy link
Member

See dprint/dprint#355

@scottwillmoore
Copy link

As discussed in dprint/dprint#413 a temporary fix could be to pass --config to dprint. Would it be a good idea to add a setting for this extension to allow arguments to be passed to dprint, such as: --config https://raw.githubusercontent.com/dprint/dprint/main/dprint.json. However, this wouldn't be a great fix as you would no longer inherit project specific configuration.

@t7yang
Copy link

t7yang commented Jan 11, 2022

The main barrier for me to replace prettier is the extension can not work without a config file.
With prettier vscode extension, I can open any file or create an untitle file, write something and format the content which dprint extension could not provide.

@dsherret
Copy link
Member Author

@t7yang thanks for your feedback. I am planning on prioritizing these issues.

@tabarra
Copy link

tabarra commented Aug 25, 2023

@dsherret Any update on this feature request?
I'm definitely holding back from switching to dprint because it obligates me to add a config file to each project I'm starting, which can actually be pretty annoying if I'm trying to modify someone else's repo or write some quick script.
The formatter itself already has defaults, I don't understand why the plugins can't be available by default as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants