本文介绍了Javascript中,崇高codeIntel和暗示code智能自动完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何提示或教程来建立的JavaScript自动完成是 崇高文字2 崇高codeIntel

Are there any tips or tutorials to set-up Javascript auto-completion with Sublime Text 2 and SublimeCodeIntel?


  • 什么是$ C $的ç英特尔自动完成的局限性(包装functon等内部模块。)

  • What are the limitations of Code Intel auto-completion (modules inside wrapper functon, etc.)

的Javascript空间树是如何建立和你可以给为code英特尔人工提示,当它不能正确地猜出(如给somekind的@class my.module.Foobar在评论暗示)

How Javascript namespace tree is build and can you give manual hints for the Code Intel when it fails to guess correctly (e.g. give somekind of @class my.module.Foobar hint in comments)

问题是崇高codeIntel本身不能说明过程和code智力的一部开拓创新作者假设你科莫多IDE(其中正常工作我所听到的)

The problem is that SublimeCodeIntel itself does not describe the process and the orignal authors of Code Intelligence assume you use it with Komodo IDE (where it works fine what I have heard)

此外去论坛主题没有答案

Also here goes forum thread without answers

推荐答案

我一看的(SCI)来源$ C ​​$ CS和我的理解是,<一个href=\"https://github.com/Sublime$c$cIntel/Sublime$c$cIntel/blob/master/libs/$c$cintel2/lang_javascript.py\"相对=nofollow> lang_javascript.py 描述了SCI是可以胜任的。文件它依赖于自己的实现,它不使用外部JavaScript词法分析器。它<一个href=\"https://github.com/Sublime$c$cIntel/Sublime$c$cIntel/blob/master/libs/$c$cintel2/lang_javascript.py#L316\"相对=nofollow>试图JSDoc检查一些点,但实现看起来有点像一个特设的一个我。

I had a look at SublimeCodeIntel (SCI) source codes and my understanding is that lang_javascript.py describes what SCI is capable of. A simple grep of the file shows that it relies on its own implementation and it does not use external JavaScript lexer. It tries to check JSDoc to some point but the implementation looks rather like an ad-hoc one to me.

JavaScript的词法分析器似乎没有任何测试,所以很难知道什么可以做,但究竟有记录命令,所以你的并给它一个去它做什么。就个人而言,我有SCI(它很慢,我和不够准确),而坏的经验,所以我会尝试使用一些更强大的 - 它现在是旧如旧的问题是两岁

The JavaScript lexer does not seem to have any tests so it's hard to know what it can do exactly but there are logging commands so you enable them and give it a go what it does. Personally, I have rather bad experience with SCI (it was slow for me and not accurate enough), so I would try to use something more robust - it's old now as the question is two years old.

这是不是直接回答你的问题,它只是一个分析,你就必须联系作者或挖掘更多一些源$ C ​​$ C(因为它是用Python编写的这是相当容易的),如果你仍然有兴趣。

This is not a direct answer to your questions, it's just an analysis and you'll have to contact the author or dig some more in the source code (which is fairly easy since it's written in Python), if you are still interested.

有<一个href=\"https://github.com/Sublime$c$cIntel/Sublime$c$cIntel/blob/master/libs/$c$cintel2/lang_javascript.py#L1105\"相对=nofollow>隐藏的宝石在源头code 的,但:

#一切都是JS是一个对象.... MUMUHAHAHAHAHAHAAAA .......

: - )

这篇关于Javascript中,崇高codeIntel和暗示code智能自动完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 10:54