简体   繁体   English

代码辅助 - Aptana中的外部JavaScript库

[英]Code assist - external javascript library in Aptana

Trying to get Easeljs js library in Aptana 3 (as web project). 试图在Aptana 3中获取Easeljs js库(作为Web项目)。 Dragged the files in the project (files are indexed). 拖动项目中的文件(文件已编制索引)。 It doesn't recognize the library as code assist. 它不会将库识别为代码辅助。 Is the only way for external js library to make a sdocml (if so is there a generator ?) or is there a other way to get code assist ? 是外部js库创建sdocml的唯一方法(如果有的话是生成器?)还是有其他方法可以获得代码辅助?

Ugg I know it's off topic but i've found the code assist in Aptana3 and Eclipse to be poor in general, and a really memory hog, in many case I've turned it off, as the IDE has become unresponsive for the constant "rebuilding workspace"... Ugg我知道这不是主题,但我发现Aptana3和Eclipse中的代码辅助一般都很差,而且真的是内存耗费,在很多情况下我把它关掉了,因为IDE对常量没有反应“重建工作区“......

So with that out the way... 所以顺便说一下......

If you follow these instructions they should help you 如果您遵循这些说明,他们应该帮助您

https://wiki.appcelerator.org/display/guides2/Using+JavaScript+Libraries https://wiki.appcelerator.org/display/guides2/Using+JavaScript+Libraries

Generally as long as the code is visible to the project (in say a gitignored lib folder), and it's documented using ScriptDoc (which isn't that much off jsdoc) standard, my understanding is it will do it's best to do code assist. 通常,只要代码对项目可见(例如gitignored lib文件夹),并且使用ScriptDoc(jsdoc不是那么多)标准记录,我的理解是它最好做代码辅助。

https://wiki.appcelerator.org/display/guides2/ScriptDoc+%28SDOC%29+2.0+Specification https://wiki.appcelerator.org/display/guides2/ScriptDoc+%28SDOC%29+2.0+Specification

You can apparently improve the code assist by using actual sdocml file for particular libraries, but I'm yet to see any improvement myself. 通过使用特定库的实际sdocml文件,您显然可以改进代码辅助,但我自己还没有看到任何改进。

Just make sure there's a copy of easejs in your project, your editing js files in the javascript editor (right click open with javascript editor), and your project is a web/php project, 只需确保项目中有一个easejs的副本,在javascript编辑器中编辑js文件(右键单击用javascript编辑器打开),你的项目是一个web / php项目,

note it's pretty terrible at closures so i wouldn't expect everything to auto complete as you'd expect. 注意它在关闭时非常可怕,所以我不希望一切都像你期望的那样自动完成。

If your doing alot of commercial work, would recommend intellij as a good enterprise quality javascript IDE, or the web storm, html5/js cut of the code, they both support code completion in javascript alot better than Aptana3/Eclipse. 如果你做了很多商业工作,会推荐intellij作为一个优秀的企业级质量的javascript IDE,或者网络风暴,html5 / js代码的剪切,他们都支持javascript中的代码完成比Aptana3 / Eclipse更好。

If not the community version is still better than Aptana3/Eclipse at javascript. 如果不是社区版本仍然比Javascript的Aptana3 / Eclipse更好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM