Search code examples
webstorm

Can WebStorm automatically format the code when I am writing?


In Visual Studio when I type some special characters like ;} it will automatically format related code segment, but in WS, nothing happens. I tried to find that option but ended without fruits.

// 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. :)


Solution

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