Atom JavaScript Autocomplete

冷暖自知 提交于 2019-12-03 00:56:50

Since JavaScript is loosely coupled, providing a working autocomplete solution is not as easy as for statically typed languages like Java. Your best bets with Atom are the following packages:

  • autocomplete-plus - this is now bundled with Atom as the default autocomplete provider
  • ternjs - this looks pretty good, but requires some configuration.

I suggest you give these a try.

I think you should go for atom-ternjs

This is java script intelligence for atom

You need to change(Enable) setting for atom-ternjs

  1. Use autocomplete-snippets
  2. Display both autocomplete-snippets and function name

and many more depends on your requirements ...

If you are using es6 JavaScript or TypeScript or Node then ide-typescript is good. It uses language server similar to vscode and understands imported/required modules from your project and npm libraries. Also there is quite similar atom-typescript with more focus on TypeScript but can be also configured for JavaScript as described here - https://github.com/TypeStrong/atom-typescript/blob/master/docs/faq.md#i-want-to-use-atom-typescript-with-javascript-too.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!