JavaScript plugin for Jetbrain's IDEs to provide AutoComplete support for CommonJS require
and some ES6 import
statements.
For this plugin to work properly you may need to perform the following
When this plugin is installed and configured, when you type a require
var statement to load a dependency through a CommonJS file, the variable name is used to autocomplete the rest of the require
statement:
// In '<project_root>/src/javascript/views/MyView.js' // MyModel.js is in <project_root>/src/javascript/models/MyModel // and './src/js' is set as our main JS root directory. Then, // when you type in "var MyModel = r" you should see the rest of // the following require statement in your autocomplete options: var MyModel = require('../models/javascript/MyModel');
The plugin also supports ES6 imports when importing the default export or all exports of a file:
// typing out an import until you get the // variable name... import * from foo // ...will allow you to autocomplete the path import * as foo from '../utils/foo'; // Same for default exports import Bar // completes to... import Bar from '../Bar.js'
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4