Ace Editor JavaScript AutoCompletion (2025) - Stack Overflow

I have AutoCompletion working in a rudimentary fashion in Ace Editor for JavaScript.I can type in a k

I have AutoCompletion working in a rudimentary fashion in Ace Editor for JavaScript. I can type in a keyword, a period and have matches come up. I'd like to have actual "intellisense" functionality where I can feed my completer objects and such and have autocomplete work as I drill down into objects.

The tern extension seems like it would do what I want, but it appears to be a 3 year old fork of Ace, and that makes me a little uncomfortable running with it.

The "built-in" completer for Ace seems to pull in "everything" from the browser context it's running in, and that isn't going to work for me either. The code being edited will be running in an isolated V8 context, so browser (or NodeJS) globals won't be available (on purpose).

Before I go down the rabbit hole of rolling my own JavaScript interpreter logic, is there any more recent solution on this that I've missed in my searches?

I have AutoCompletion working in a rudimentary fashion in Ace Editor for JavaScript. I can type in a keyword, a period and have matches come up. I'd like to have actual "intellisense" functionality where I can feed my completer objects and such and have autocomplete work as I drill down into objects.

The tern extension seems like it would do what I want, but it appears to be a 3 year old fork of Ace, and that makes me a little uncomfortable running with it.

The "built-in" completer for Ace seems to pull in "everything" from the browser context it's running in, and that isn't going to work for me either. The code being edited will be running in an isolated V8 context, so browser (or NodeJS) globals won't be available (on purpose).

Before I go down the rabbit hole of rolling my own JavaScript interpreter logic, is there any more recent solution on this that I've missed in my searches?

Share Improve this question asked Feb 12 at 20:25 JasonJason 1,1242 gold badges13 silver badges23 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

The official way to add autocompletion to ace is https://github/mkslanc/ace-linters/ which adds it via LSP and typescript language service.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745204095a4616500.html

相关推荐

  • Ace Editor JavaScript AutoCompletion (2025) - Stack Overflow

    I have AutoCompletion working in a rudimentary fashion in Ace Editor for JavaScript.I can type in a k

    6小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信