For all files (default setting for opened files): Settings/Preferences → Editor → General → Use soft wraps in editor. You can now specify file names/extensions where this option will be enabled by default:
![Enter image description here](https://i.stack.imgur.com/kk723.png)
For the currently opened file in the editor: menu → View → Active Editor → Use Soft Wraps (Note: I've assigned custom Ctrl + Alt + R + shortcut for that)
![Enter image description here](https://i.stack.imgur.com/OfbHP.png)
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](https://i.stack.imgur.com/UViKn.png)
(Note: I have customised this menu quite a bit; by default it has much less items here)
Search Everywhere (Shift 2x times) or menu Help → Find 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](https://i.stack.imgur.com/oDkSW.png)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…