Search code examples
pythonvisual-studio-codeword-wrapprettier

My VSCode word wrapper width is too small. Word wrapping too soon


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


Solution

  • 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