DEV Community

Liang Wang
Liang Wang

Posted on

Disable auto line break in VS Code

To disable the auto line break in the VS code.
Are you struggling to disable the auto line break in vs code from the Prettier extension? If yes this is for you :)

Open vs code => Code => Preferences => Settings => In the search field type: Prettier
Now from the provided Prettier settings, choose the Prettier: Print Width

Image description

Screenshot
And Instead of 80, you can make it a big number. Eg: 999999
Now you don't have to worry about the line break.

link

Top comments (0)

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay