Atom Editor Plugin Atom-ternjs

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.