Skip to content

Can't format an unsaved document #1436

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

Closed
garyking opened this issue Apr 19, 2018 · 1 comment
Closed

Can't format an unsaved document #1436

garyking opened this issue Apr 19, 2018 · 1 comment

Comments

@garyking
Copy link

Formatting unsaved documents in JS and HTML work fine in VSC, but it doesn't work with Python unsaved documents. Using "Format document" on an unsaved document does nothing.

@brettcannon
Copy link
Member

That's because not all formatters support formatting from stdin (e.g. autopep8 doesn't support it, neither does Black which may land with #1234 ).

@lock lock bot locked as resolved and limited conversation to collaborators Jul 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants