Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

For more information on how Google's third-party cookies operate and handle your data, see: Google Privacy Policy

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

#VSCode

How to Enable Word Wrap to Disable Horizontal Scrolling in VS Code

If you need a website or want to collaborate, contact me or find our more.

Author: Radu

Pay once, use forever—get huge lifetime software deals on ProductCanyon • Ad

VS Code doesn’t have word wrap enabled by default. So, if you have long lines of code, a horizontal scrolling bar will appear.

If you handle design and write HTML, then long lines will definitely happen. So, it becomes frustrating to scroll horizontally all the time.

Luckily, there’s a simple solution for this, and I’ll share it with you fine people.

Disable Horizontal Scrolling in VS Code by Enabling Word Wrap

I’ll show you how to do it per file or for all files.

Set Word Wrap Globally

If you want to apply word wrap to all your files in Visual Studio Code, here’s what you need to do.

Go to File > Preferences > Settings and type in “word wrap” in the Search settings field.

Then, where it says Editor: Word Wrap, select on from the drop-down menu.

That’s it!

Toggle Word Wrap Per File

If you want to quickly toggle word wrap on and off per file in VS Code, then you can simply press ALT+Z on your keyboard, or go to View > Toggle Word Wrap.

As simple as that! 😃

That’s a Wrap

If this post helped you, please consider following me on Bluesky or Instagram to support me.

Also, don't hesitate to contact me if you're interested in my web design services, want to collaborate, or just have something to say.

About Radu

I've been working online from home for over 11 years, gaining valuable experience and developing a wide range of skills, including web design and development, optimization, and SEO.

More posts