Skip to content

Going to next line while in brackets in Exception #10285

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
yankyhoffman opened this issue Feb 24, 2020 · 2 comments
Closed

Going to next line while in brackets in Exception #10285

yankyhoffman opened this issue Feb 24, 2020 · 2 comments
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@yankyhoffman
Copy link

yankyhoffman commented Feb 24, 2020

When conforming to a max-column length in python, you can only span code on multiple lines via;

  1. The continuation symbol \
  2. While being in brackets [{(

The extension does a fantastic job when hitting ENTER when in brackets, putting the closing bracket on the same column 2 lines down and putting the cursor at the next line already indented.

See the following for the desired (and mostly present behavior) and for the issue observed.

the | depicts the cursor position

# step 1
if True:
    print(|)
# step 2 (hit ENTER)
if True:
    print(
        |
    ) 

However if I am in the parens of an Exception then the behavior is the following

# step 1
if True:
    raise Exception(|)
# step 2 (hit ENTER)
if True:
    raise Exception(
|)

OS: Ubuntu 19.10
VSCode Version: 1.42.1
Python Extension Version: 2020.2.64397
Python Version: 3.7.5 (64-Bit)

Here is a screencast of the issue.
pybrackets

@yankyhoffman yankyhoffman added triage-needed Needs assignment to the proper sub-team bug Issue identified by VS Code Team member as probable bug labels Feb 24, 2020
@karrtikr
Copy link

This will be fixed as part of #8996

@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Feb 24, 2020
@yankyhoffman
Copy link
Author

This will be fixed as part of #8996

Thanks!

@lock lock bot locked as resolved and limited conversation to collaborators Mar 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

2 participants