Can WebStorm automatically format code when I write?

In Visual Studio, when I type some special characters, for example;}, it automatically formats the associated code segment, but nothing happens in WS. I tried to find this option, but ended up without fruit.

// e.g. In VS, if we type something like:
var abc=123
// and then type ; it will be formatted as:
var abc = 123;

I am trying to understand why many people love WebStorm as a JS IDE. :)

+4
source share
4 answers

This option is provided in WebStorm 8 (coming soon) - see IDEA-120066

0
source

PC: Ctrl + Alt + L
MAC: Command + Alt + L
Here you can find a good John Lindquist tutorial: http://www.youtube.com/watch?v=xIxDar8CbJA

+1
source

VS , , ;}, WebStorm . /** Enter, , - WebStorm JSDoc.

IDE " " → "JavaScript". us<Enter> "use strict;" ..

, Code -> Reformat Code ( ). , , , JavaScript:) , IDE , GitHub StackOverlfow () ..

In addition, you should include JSHint, which highlights abc=123the need for improved style.

0
source

select Code > Reformat Codein the main menu, a code formatting popup will appear.

-1
source

Source: https://habr.com/ru/post/1529729/


All Articles