Is it possible to set Wordwrap in WebStorm? I need to set by default all the files should be in wordwraping

前端 未结 5 1189
走了就别回头了
走了就别回头了 2021-01-31 13:06

Is there any way to set word-wrap for all new/existing files should be in word-wrapping.

I need to set by default all the file in word-wrapping like Notepad++.

相关标签:
5条回答
  • 2021-01-31 13:48

    Settings(ctrl+alt+s)--->Editor--->general--->use soft wrap in editor

    0 讨论(0)
  • 2021-01-31 13:53

    Yes, it is possible. I have webstorm 2016. Follow these step.

    Step 1:

    This step may vary depending on OS used. Just search for preferences. I have screenshot for Mac.

    Step 2:

    Click on Editor twice. Note that arrow will change to downward position as shown.

    Step 3 :

    Click on general and see the option Use soft wraps in editor.

    Step 4:

    Select it and click ok

    0 讨论(0)
  • 2021-01-31 14:00

    Settings/Preferences | Editor | General | Use soft wraps in editor -- this setting affects all files.

    You can disable or enable this option on per file basis (until it's closed) via View | Active Editor | Use Soft Wraps

    More recent version (compared to the versions available when this question was answered) also have these options available in the Editor's gutter menu (right click in the area where the line numbers/breakpoints/etc are).


    P.S.

    Settings screen has very nice feature -- quick search box (top left corner) -- it does wonders. It allows you to quickly narrow the search scope of the specific setting by it's name (keyword).

    You can also use "Search anywhere" (Shift two times) as well as "Find Action" (Help | Find Action... Ctrl + Shift + A) to search for individual settings.

    0 讨论(0)
  • 2021-01-31 14:08

    Webstorm 9.0.3 Evaluation version on Windows 7:

    I know I'm a bit late coming here, but if like me, you find that there's no "Use soft wraps in editor" option when you look in Settings>Editor>, i just discovered you can apply 'soft wrap' to individual files:

    • Open the file,
    • Left click the left margin (where the line numbers are),
    • You'll see "Use Soft Wraps" as an option you can turn on.

    It's not quite what I wanted (change settings to apply to all files), but it's something.

    0 讨论(0)
  • 2021-01-31 14:09

    Settings (Preferences on Mac) | Editor | General | Use soft wraps in editor

    Although its an old thread but updating as someone may find it usefull. In version 9.0.1, you have to select General inside Editor and then Use soft wraps in editor

    0 讨论(0)
提交回复
热议问题