Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
414 views
in Technique[技术] by (71.8m points)

node.js - How to disable WebStorm semicolon check?

How to disable WebStorm semicolon check in Node.js?

I have tried the following method but they do not work:

  • Checked out the option use semicolon to terminate statement
  • Changed JavaScript version to ecma6
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
  1. Settings/Preferences | Editor | Inspections
  2. JavaScript | Code style issues | Unterminated statement -- disable this inspection

You can also reach the same inspection by:

  1. Placing caret on problematic place in your Editor and bringing Quick Fix menu (Alt + Enter or by clicking on light bulb icon)
  2. Choosing right option in appeared menu (if not sure which one then try step #3 for few of them)
  3. Arrow Right (or click on small triangle on the right side) to open submenu
  4. Choose desired action

P.S. JSLinh/JSHint and alike may also produce such warnings if you are using these tools.


As for the actual code generated by IDE (e.g. when using Code | Reformat... or using code completion popup/functionality) -- such option is available at

  • Settings/Preferences | Editor | Code Style | JavaScript (similar path for TypeScript)
  • Punctuation tab

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...