You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VS Code version: 1.19.1
Python Extension version: 0.9.1
Python Version: 3.6
OS and version: Windows 10
Actual behavior
When moving up lines with key shortcut Alt+UpArrow or moving down with Alt+DownArrow, extension doesn't auto-indent blocks of code. gif <--- Illustrates the issue.
Expected behavior
Auto-indentation should be added when moving up lines of code. I understand that some people would rather not have this feature added, but I think there should at least be a config option to enable/disable auto-indenting.
Unfortunately there doesn't seem to be any interest in this feature from other users. we won't be looking into this at this stage, as there are other bugs and features that are more popular and higher priority (with more users interested in them).
This would have to be done as part of the analysis engine, however.
Moving lines up/down is done by VSC, and we do not have any hooks on formatting the code as they move around. Hence we'll need to create our own commands to move lines up/down (creating our own edits..). This would lead to us duplicating what VSC does today with minor changes.
I'd kind of like format on paste, here we need format on line edit.
I.e. we need some VSC hooks to get this done correctly.
OK, based on the fact that we need VS Code hooks to implement this I'm going to close it. @sulkhanp if you are up for opening an issue at Microsoft/vscode for the appropriate APIs then we can re-open this once those APIs exist.
Activity
Astrantia commentedon Mar 17, 2018
Can this issue be given a priority? Don Jayamanne (@DonJayamanne) Mikhail Arkhipov (@MikhailArkhipov)
DonJayamanne commentedon Mar 17, 2018
Unfortunately there doesn't seem to be any interest in this feature from other users. we won't be looking into this at this stage, as there are other bugs and features that are more popular and higher priority (with more users interested in them).
brettcannon commentedon Apr 10, 2018
Don Jayamanne (@DonJayamanne) is this feasible? In which case we can make this a "Help Wanted" feature.
DonJayamanne commentedon Apr 10, 2018
Brett Cannon (@brettcannon)
I'd kind of like
format on paste, here we needformaton line edit.I.e. we need some VSC hooks to get this done correctly.
brettcannon commentedon Apr 11, 2018
OK, based on the fact that we need VS Code hooks to implement this I'm going to close it. @sulkhanp if you are up for opening an issue at Microsoft/vscode for the appropriate APIs then we can re-open this once those APIs exist.