New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for shell function completion on IDE #859
Comments
Thanks for the request! Could you link me to a github project I could open in webstorm which has mixed success at completion (i.e., shelljs doesn't complete, but some other dependency does)? |
I don't but I can write instructions here, it's as simple as this:
npm init
npm install shelljs bluebird --save
touch index.js
const Promise = require('bluebird');
const shell = require('shelljs');
shell.echo('hello world');
shell.exec('ls -lart');
Promise.try(()=>{});
shell.which('npm');
Promise.promisifyAll();
|
Solved by Downloading the external library from Settings. |
@aponxi I'm not sure what this means. What is the external library? |
WebStorm -> Preferences -> Languages & Frameworks -> JavaScript -> Libraries. This allows you to download library support manually and worked for getting autocomplete commands. |
This is from WebStorm:

None of the functions are completing. Is there a way to type cast or if not can you add a JSDoc friendly function?
In the past I've solved this problem in a few ways. Notable two:
Regards,
The text was updated successfully, but these errors were encountered: