forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Improve auto-indentation behaviour #481
Copy link
Copy link
Closed
Labels
area-editor-*User-facing catch-allUser-facing catch-allarea-formattingfeature-requestRequest for new features or functionalityRequest for new features or functionalitymetaIssue that is tracking an overall projectIssue that is tracking an overall projectneeds PRReady to be worked onReady to be worked on
Milestone
Metadata
Metadata
Assignees
Labels
area-editor-*User-facing catch-allUser-facing catch-allarea-formattingfeature-requestRequest for new features or functionalityRequest for new features or functionalitymetaIssue that is tracking an overall projectIssue that is tracking an overall projectneeds PRReady to be worked onReady to be worked on
Environment data
VS Code version: Version 1.19.0
Commit 816be6780ca8bd0ab80314e11478c48c70d09383
Date 2017-12-14T09:56:48.842Z
Shell 1.7.9
Renderer 58.0.3029.110
Node 7.9.0
Architecture x64
Python Extension version: 0.9.1
Python Version: Python 3.6.3
OS and version: ArchLinux
Case 1
The cursor is at
|position (about to add second argument toprint), and I pressEnter:Actual
It becomes:
Expected 1
OR Expected 2 (this one is preferred)
Case 2
Actual
The cursor is right after the closing parenthesis and I press
Enter.It becomes:
Expected
Case 3
Actual
The cursor after the comment. Press Enter:
It becomes:
Expected
Same with comments after for loops:
after pressing Enter becomes
Expected:
Also look at #3284