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

Python de-indentation #4506

Closed
Canorus opened this issue Feb 23, 2019 · 1 comment
Closed

Python de-indentation #4506

Canorus opened this issue Feb 23, 2019 · 1 comment
Assignees

Comments

@Canorus
Copy link

Canorus commented Feb 23, 2019

Environment data

  • VS Code version: 1.13.1
  • Extension version (available under the Extensions sidebar): 2019.1.0
  • OS and version: macOS 10.13.6
  • Python version (& distribution if applicable, e.g. Anaconda): python 3.7.2
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
  • Relevant/affected Python packages and their versions: XXX

Expected behaviour

if True:
    print()
else:
    print()
try:
    print()
except:
    print()

Actual behaviour

vsc_indent_bug_opt_1

Steps to reproduce:

  1. XXX

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)

XXX

This may be a duplicate of known issue #2367 and #771 and #3188 , but issue #2367 points to #771, and #771 says this was supposed to be fixed by #2724 , and was closed and locked.

Issue #3188 was also closed due to being upstream issue, while microsoft/vscode#62464 (and microsoft/vscode#62519 which was claimed as duplicate) says this should be reported to extension repository.

This issue was supposed to be fixed, which isn't, it seems it's not very certain where this issue should go to, I'm just hoping I'm reporting to right place. Thanks.

@ghost ghost added the triage-needed Needs assignment to the proper sub-team label Feb 23, 2019
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Feb 25, 2019
@DonJayamanne DonJayamanne self-assigned this Feb 25, 2019
@DonJayamanne
Copy link

Please enable the following setting in you settings.json file:

"editor.formatOnType": true,

If you would like this just for Python code, then you can do as follows:

    "[python]":{
        "editor.formatOnType": true
    },

@ghost ghost removed the triage label Feb 26, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Mar 26, 2019
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