-
Notifications
You must be signed in to change notification settings - Fork 5
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
Format Selection is formatting the entire file #101
Comments
@lsouder-ozone3d - hi, has the formatOnSave affected you? Could you try the following setting for
If there's still a unexpect problem, please show me a code snippet can reproduct this as I just try this on my side that seems working fine. |
@EeyoreLee thanks for responding. That config didn't solve the problem. def do_something():
xs = []
for x in xs:
y = 'y'
if y:
pass
def do_something_else():
return '-path 1' Line 5 has 2 unnecessary tabs. If I |
@lsouder-ozone3d - yup, I reproducted it not only through vscode extension but also |
Seems there's a PR to fix it, upgrade your local yapf package when yapf merge it may fix it. Related PR yapf #1102 |
@EeyoreLee Thanks for looking into that! I'll close out this issue and watch for a change over there. |
I am having an issue where doing
Format Selection
is making changes outside the selected range. To clarify, doingFormat Document
does yield different results (more changes), so they are at least different.I am using:
My .vscode/settings.json is
The text was updated successfully, but these errors were encountered: