Disable auto wrap long line in Visual Studio Code

后端 未结 3 518
余生分开走
余生分开走 2021-01-30 07:59

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

3条回答
  •  生来不讨喜
    2021-01-30 08:28

    Autopep8 requires --aggressive in order to recommend non-whitespace changes:

    "python.linting.pylintArgs": ["--max-line-length", "120", "--aggressive"]
    

    This will wrap the long lines for you.

提交回复
热议问题