Search code examples
webstorm

Setting up Nodejs for WebStorm


I've been trying all say to get syntax and autocomplete working in WebStorm. I've installed WebStorm 7 EAP. Right now, I'm trying to get this simple script to highlight properly: enter image description here

How do I get WebStorm to accept app.listen(3000)?


Solution

  • I think the best solution which became available in one of the recent EAPs is to download library via Setting | JavaScript | Libraries | Download. Select TypeScript community stubs there and add express.js. TypeScript library file will improve completion and highlighting in pure JavaScript project. Also please see WEB-8801.