Closed pktiuk closed 6 months ago
I guess you should update your black version
Duplicate of https://github.com/microsoft/vscode-black-formatter/issues/395
This is fixed in pre-release. Nothing to do with Black formatter itself. More to do with VS code uses UTF-16 when calculating string lengths in the editor no matter which encoding is used for the file itself. You can read the details in #395
Problem description
I have a Python code:
When I format it using black
23.12.1
I get:But When I format it with this addon I get:
Which is invalid code.
Configuration