Soft-wrap

Use soft-wrap to prevent horizontal scrolling.

When using a file that has long lines, we can prevent horizontal scrolling by using soft-wrap. Let's use Find Action to enable soft-wrap. Press ⌘⇧A (macOS) / Ctrl+Shift+A (Windows/Linux) to open the Find Action dialog, and search for "soft-wrap".

Hint: The hyphen is important here!

Find action soft-wrap

You can turn soft-wrap on for this file only or configure it for all files in your project.