Search code examples
javascriptwebstorm

WebStorm, close the error code not written colon


Using WebStorm.

I do not want to write semicolon ; at the end, how to turn off the error ?


Solution

  • File > Settings > Editor > Inspections > JavaScript > Code Style Issues > uncheck 'Unterminated statement'.

    You'll have to restart WebStorm.

    You can also do this in 'Default Settings' so this applies to any future projects.