VS code - enable word wrapping in Visual Studio Code

0 votes
180 views
added Jan 20 in VSCode by lcjr First Warrant Officer (11,960 points)

To enable word wrapping in Visual Studio Code, follow these steps:

  1. Open Visual Studio Code.
  2. Go to the View menu and select Command Palette (or press Ctrl+Shift+P on Windows/Linux or Cmd+Shift+P on macOS).
  3. Type Preferences: Open Settings (UI) and hit Enter.
  4. In the search bar, type word wrap.
  5. Under Editor: Word Wrap, select the desired option:
    • on: Wraps lines at the viewport width.
    • bounded: Wraps lines at the editor width or a specific value.
    • off: Disables word wrapping (default behavior).

Alternatively, you can directly modify your settings by adding this line to your settings.json file:

"editor.wordWrap": "on"

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...