简体   繁体   中英

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... 在此处输入图像描述

should look more like this.. 在此处输入图像描述

And in VSCode I have changed these things with no luck... 在此处输入图像描述 在此处输入图像描述

Also, I think this problem only exists in this current project. Maybe I installed a python extension causing this?? Maybe these... 在此处输入图像描述

在此处输入图像描述

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. :)

The image below is located in the settings. This resolves my issue. 在此处输入图像描述

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM