forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Test the new isort
extension
#18997
Labels
testplan-item
Test plan item/assignments for upcoming release
Milestone
Comments
karthiknadig
added
the
testplan-item
Test plan item/assignments for upcoming release
label
Apr 25, 2022
This was referenced Apr 26, 2022
@karthiknadig In the snippet above, shouldn't the setting be "isort.args": ["--profile", "black"]? |
@gregvanl you are correct. I updated the snippet. |
This was referenced Apr 27, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Refs: #18891
Complexity: 1
Create Issue
Requirements
Install the following extensions:
https://marketplace.visualstudio.com/items?itemName=ms-python.isort
https://marketplace.visualstudio.com/items?itemName=ms-python.black-formatter
NOTE: Currently only pre-release version in available.
Verification
isort
extension adds import organization support using theisort
library. You should not have to installisort
in your environment. Try this for example:Create a python file with following code:
You would see diagnostics like this:
You can trigger import sorting using
shift+alt+o
:The first one there is from the prototype extension, the second one comes from python extension. Click on the first one.
Result should be something like this:
You can add this to your settings to automatically do this for you and work with
black
formatter.The text was updated successfully, but these errors were encountered: