Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Atom JS code intelligence tips complement


May 24, 2021 Atom


Table of contents


JS code intelligence tips to complete

Off-topic

Although the official version .autocomplete-plus one of the most obvious features is to remember the names you've already entered to match; but for some languages, it's a bit inadequate. ... Where JS is clearly inadequate... So you need plug-ins to expand.

atom-ternjs

Download address: https://atom.io/packages/atom-ternjs

Official Description: Javascript code intelligence for atom with tern .js. Uses suggestion provider by autocomplete-plus.

In short, it's the JS code smart tip, and I want to be able to build it directly into atom in the future, rather than as a third-party plug-in!!

This plug-in relies on two Dongdong, git, and nodejs;

The scope of action

  • Configure your project (configured for the project - not translated in short)
    • Navigate to Packages -> Atom Ternjs -> Configure project
    • The config view appears.
    • Hit “Save & Restart Server” to create/update the .tern-project file
  • Global (this doesn't have to be explained)

Language features supported by smart tips

  • browser: completion for vanilla js (optional)
  • ecma5: es5 (optional)
  • ecma6: es6 (optional)
  • jquery: complete for jQuery (optional) - this can be there, and JQ also supports it

There are two ways to install

- apm install atom-ternjs - sets internal search plug-in name

The effect map

Atom JS code intelligence tips complement