kbrose / vsc-python-indent

Correctly indent python code on the fly, in Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=KevinRose.vsc-python-indent
MIT License
82 stars 19 forks source link

multiple indent blank lines will not clear white space before line #95

Closed stolenzc closed 2 years ago

stolenzc commented 2 years ago

When I enable python-indent,I input multiple blank line which need indent,before all line will keep white space include before line,just like this pic: image

(It will show all white space in my vscode)

but if I disable this plugin, It's will automatic delete white space, like this

image

I don't know this is a feature or a bug, if you need more information can ask me, hope your reply

kbrose commented 2 years ago

Hi @stolenzc -- have you tried setting the trimLinesWithOnlyWhitespace parameter? See the README

stolenzc commented 2 years ago

@kbrose Thank you very much for your reply, it really solved my problem.