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

限于喜欢 提交于 2020-07-16 16:29:30

问题


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++.


回答1:


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.




回答2:


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.




回答3:


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




回答4:


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




回答5:


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



来源:https://stackoverflow.com/questions/21398690/is-it-possible-to-set-wordwrap-in-webstorm-i-need-to-set-by-default-all-the-fil

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!