When I write Python code in VS Code, all long lines get split in half after saving. I've already figured out that this is related to the Python extension.
Check what your python formatting provider is in the settings.
"python.formatting.provider": "autopep8"
I only know a solution for autopep8
.
Try changing --max-line-length
to a larger value say 500.
"python.formatting.autopep8Args" : [ "--max-line-length=500" ]
Hope this helps