Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable Horizontal Scrolling in PhpStorm

Tags:

phpstorm

Is there a way to do this? I'd much rather have the code wrap and say within 80-100 character line lengths. The scroll over every time I swipe is driving me crazy!

like image 755
Scott C Wilson Avatar asked Jul 25 '17 14:07

Scott C Wilson


1 Answers

There is "soft wraps" functionality in IDE -- it does just that -- it virtually (on a screen only) breaks the line into multiple to show whole line without the need for horizontal scrolling.

It can be enabled at:

  • For all files: Settings/Preferences | Editor | General |Soft-wrap these files
  • For current file only: View | Active Editor | Use Soft Wraps

These options are also available via gutter context menu (the area where the line numbers are). If you have customized that context menu long time ago ... then they may not be there (as they were added there straight away).

enter image description here

like image 180
LazyOne Avatar answered Nov 14 '22 10:11

LazyOne