is there any available intellisense for Webstorm for Sails.js app? In all my controllers, I get message that the model is undefined, even though it works perfectly. The same goes with calling services.
Press Ctrl+Alt+S to open the IDE settings and select Languages & Frameworks | JavaScript | Libraries. On the Libraries page that opens, click Download and in the Download Library dialog that opens, select the required library, and click Download and Install.
With PhpStorm, you can develop modern web, mobile, and desktop applications with JavaScript and Node. js. PhpStorm also supports React, Angular, Vue. js, and other frameworks and provides tight integration with various tools for web development.
Code completion is one of the essential features of the WebStorm editor. To show you completion suggestions, WebStorm goes through the project files with the source code and adds classes, methods, functions, and variables defined in them to a special internal index.
i know this is a little old, but what i ended up doing was first naming all "modules.exports" definitions with the same name of the file (like a class name).
So if i have a file named UserController.js, i would start it with:
var UserController = module.exports = {}
Next, you need to go to the preferences page and hook up your sails api folder as a library.
You will notice that the icon for api files now has some books on them.
Also, make sure that your "Node.js Globals" is enabled as well as the "node_modules" folder of your sails project. that will enable code completion on common node.js stuff and on sails dependencies (waterline, ejs, etc).
Hope that helps and vote for official support!
This framework is not currently supported - please vote for http://youtrack.jetbrains.com/issue/WEB-11025. And WebStorm doesn't support its way of loading modules and thus can't provide intellisense
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With