skip to Main Content

For some reason my word wrapping has gotten messed up in VSCode. The word wrap occurs after saving. I do like this feature but I need it to stop wrapping so soon. There is plenty of space left on the right side still. I have prettier installed and it is set to the default 80 line width. I have changed this and restarted VSCode and the problem remains the same. I have even disabled prettier and it is still doing this. I have also gone into the word wrapper for VSCode and ensured it was off. Can anyone tell me what is causing this and how to resolve it?

This…
enter image description here

should look more like this..
enter image description here

And in VSCode I have changed these things with no luck…
enter image description here
enter image description here

Also, I think this problem only exists in this current project. Maybe I installed a python extension causing this??
Maybe these…
enter image description here

2

Answers


  1. Chosen as BEST ANSWER

    The image below is located in the settings. This resolves my issue. enter image description here

    Also found here... VS Code Python Formatting: Change max line-length with autopep8 / yapf / black


  2. enter image description here

    This is a function of formatting. You can turn it off in settings.

    Tips:

    Pylance is the integration of Python and Jupyter Notebook extensions, both of which are official extensions of Microsoft. There is no problem keeping them. 🙂

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search