Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Word wrapping in PhpStorm

People also ask

How do I turn on word 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 I turn on word wrap in Webstorm?

Enable soft wraps for the file types that tend to have lots of long lines (Preferences/Settings | Editor | General > Soft-wrap files). With the soft wrapping on, the IDE will display those lines wrapped in the editor without adding line breaks.

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 turn on word wrap in Pycharm?

You can also enable or disable soft wraps right in the editor: Right-click the left gutter and from the context menu, either select or clear the Soft-Wrap Current Editor option.


For all files (default setting for opened files): Settings/PreferencesEditorGeneralUse soft wraps in editor. You can now specify file names/extensions where this option will be enabled by default:

Enter image description here


For the currently opened file in the editor: menu → ViewActive EditorUse Soft Wraps (Note: I've assigned custom Ctrl + Alt + R + shortcut for that)

Enter image description here

For quite a while (since v2016 or so) you can also access this option via the context menu for the editor gutter area (the area with line numbers on the left side of the editor):

Enter image description here

(Note: I have customised this menu quite a bit; by default it has much less items here)


Search Everywhere (Shift 2x times) or menu HelpFind Action... (Ctrl + Shift + A on Windows using the Default keymap) can also be used to quickly change this option (instead of going into Settings/Preferences).

Enter image description here


You have to enable Soft Wraps. Find that option through this path.

Menu ViewActive EditorUse Soft Wraps

Wrap words in PhpStorm


Right click on the line number area and choose:

Soft-Wrap All Files or Soft-Wrap Current File, i.e.:

Enter image description here


  • Menu FileSettingsEditorUse soft wraps in editor: to turn them on for all files by default.

  • Menu FileSettingsCode StyleGeneralWrap when typing reaches right margin

    .. but that's different (it will make new line).


In addition to Settings -> Editor -> Use soft wraps in editor I recommend Use soft wraps in console and Use custom soft wraps indent with a setting of 4 to make the wraps indented to match the line they started on.


In PhpStorm 2019.1.3, it is possible to enable soft wrap for some file types only.

enter image description here