Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Soft wrap by Markdown only

I'd like to have soft wraps in the WebStorm editor only by Markdown files. According to Word wrapping in phpstorm this can be achieved only with Menu | View | Active Editor | Use Soft Wraps. I really don't want to have soft wraps by coding, but I don't want to use the menu every time I open an .md file.

Isn't there a way to assign this behavior for example to language or to file type?

like image 867
inf3rno Avatar asked Oct 09 '16 15:10

inf3rno


People also ask

What is soft wrap?

A soft return or soft wrap is the break resulting from line wrap or word wrap (whether automatic or manual), whereas a hard return or hard wrap is an intentional break, creating a new paragraph. With a hard return, paragraph-break formatting can (and should) be applied (either indenting or vertical whitespace).

How do I enable soft wrap in Intellij?

You can enable soft wrap for the editor with โ‡งโ‡ง (macOS), or *Shift+Shift (Windows/Linux), for the Search Everywhere dialogue, and then typing in soft wrap. You can also go to Preferences/Settings > Editor > General to enable Soft Wraps for more file types by default.

How do you make a soft wrap in Python?

Right-click the left gutter and from the context menu, either select or clear the Soft-Wrap Current Editor option. Keep in mind that these settings affect only the current editor, not a file. To quickly access the settings, select Configure Soft Wraps from the list of options.


1 Answers

It's 2019, and users of JetBrains apps now have automatic soft-wraps for Markdown documents - rejoice! ๐ŸŽ‰๐ŸŽŠ๐Ÿฅณ

Alas it is not enabled by default, so you'll need to visit your preferences and check a box: On WebStorm 2019.2 at least, navigate to Editor > General > Soft Wraps and click your way to Markdown-soft-wrap bliss.

Screenshot of the WebStorm preferences panel

like image 187
sherb Avatar answered Sep 29 '22 10:09

sherb