I use Visual Studio Code to write Python code with Pylint.
When I press Ctrl + S (save), the editor wraps a long line into multiple short lines. How do I disable the action or configure wrap column count to 120 (default is 80)?
I have tried "python.linting.pylintArgs": ["--max-line-length=120"]
and "editor.wordWrapColumn": 120
, but it didn't work.
editor.wordWrapColumn
won't affect that as that -- along witheditor.wordWrap
-- only affect how to display long lines, not rewrite them.autopep8
, do the following: open "Settings"-> search "python formatting autopep8 args" -> click "Add Item" -> type--max-line-length=120
(change 120 to you preferred length).