This is the Official document: HTTPS://ATOM.IO/PACKAGES/ATOM-TERNJS
Official Introduction:
JavaScript code intelligence for atom with Tern. Adds support for ES5, ES6 (JavaScript), node. js, JQuery & Angular. Extendable via plugins. Uses suggestion Provider by Autocomplete-plus.
The Autocomplete-plus-based plug-in supports the Es5,es6,node.js,jquery,angular auto-completion plugin.
And Autocomplete-plus is the Atom editor comes with it, so it doesn't need to be installed.
After you install Atom-ternjs in Atom, you can set some options settings. The default is not changed. According to the official documentation steps there is no error.
installation
Configure your project
- Open any JavaScript file from within your project
- Navigate to Packages, Atom Ternjs, Configure project
- the config view appears.
- hit Save & Restart Server create/update the. tern-project file
Optional:
- Install the Package https://atom.io/packages/hyperclick
If Configure project does not work
-
- in your project root create a file named. tern-project. See Docs @ http://ternjs.net/doc/manual.html#configuration.
- Restart the server via Packages, Atom ternjs, Restart server
- Open a JavaScript file randomly from your project NOTE: If you open the folder (file-open folder), it may not be effective if it is not opened
- Open (Packages--atom ternjs--configure project)
- Then the configuration item appears
- Choose "Save & Restart Server" After you configure the item, and then create/update the. tern-project file
If you succeed, you will open the. tern-project file at this time,
Optional:
- Installing the Hyperclick Plugin
If the configuration item has no effect
- Create a file named. tern-project at the root of your project and the contents can be seen in the address
- Restart Service (packages--atom Ternjs--restart server)
Then in this project in the JS file will be prompted ~
Atom Editor Plugin Atom-ternjs