You can first turn on Preferences → Editor → Readable line length. If you don’t do that first, the snippet below likely does nothing.
Then add a CSS snippet, and adjust it to the width you like:
body {
--file-line-width: 1000px;
}
Source, and additional plugin suggestion: How do I change readable line length?