Feature Request: option to dedent the ending bracket when splitting a function call/dict/etc. across multiple lines
What the code looks like before pressing enter:
print(
"Hello world!"|)
{
"foo": "bar"|}
What I want the code to look like after pressing enter:
print(
"Hello world!"
|)
{
"foo": "bar"
|}
What the code actually looks like after pressing enter:
print(
"Hello world!"
|)
{
"foo": "bar"
|}
I would love to have an option in the settings to enable this behavior.
this is what VSCode TypeScript uses https://github.com/microsoft/vscode/blob/42ec991f0de1d447693654cf2a77b20f3e7aa616/extensions/typescript-basics/language-configuration.json#L130-L144
https://www.reddit.com/r/vscode/comments/1ka6nd0/how_do_you_make_vs_code_deindent_python_ending/
Thanks for the ticket. I'd review a PR that adds this functionality. Not sure when I'll get around to it otherwise.
What code would one have to edit to add this function? I'd be happy to make a PR, but I just don't even know where to start.