JavaScript的code completition做对吗? [英] JavaScript code completition done right?

查看:308
本文介绍了JavaScript的code completition做对吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经尝试了一些编辑/ IDE的建议定期进行编码的JavaScript(的Aptana,WebStorm,...),但他们都没有一个满意的自动完成功能。我可能是微软的智能感知为.NET宠坏了。有一些JavaScript的智能感知在WebDeveloper,但是这似乎是一个精简版本。到目前为止,我已经找到了最好的WebStorm,但其code completition很容易被导入的库(提供数以百计的建议)和相同的函数名分心。

I've tried some of the editors/IDEs regularly recommended for coding JavaScript (Aptana, WebStorm, ...) but none of them has a satisfying autocomplete functionality. I'm probably spoiled by Microsoft's IntelliSense for .NET. There is some JavaScript-IntelliSense in WebDeveloper, but that seems to be a stripped-down version. The best I've found so far is WebStorm, but its code completition is easily distracted by imported libraries (offering hundreds of suggestions) and identical function names.

我错过了一个编辑器/ IDE使用重构(或别的东西),以提供适当的code completition,使其真正的已知,这是什么变量名代表,我只是把一个点的背后?或者是这样的道路上?

Did I miss an editor/IDE that uses refactoring (or something else) to offer proper code completition, so that it really "knowns" what that variable-name stands for, I just put a dot behind? Or is something like this on its way?

推荐答案

我总是建议科莫多编辑 ActiveState的 (到现在为止第6版,与HTML 5和CSS3的支持,以及如JavaScript,PHP等的最新版本)请注意,您可能必须安装插件为您在工作语言,但你会发现他们通过在-如Mozilla插件管理器。

I always recommend Komodo Edit from ActiveState (now up to version 6, with support for HTML 5 and CSS3 as well as recent versions of Javascript, PHP, etc.) Note that you may have to install addons for the languages you're working in, but you should find them through the Mozilla-like Addon manager.

同时支持jQuery和甚至可以让你使用jQuery在其强大的宏IDE(香草的JavaScript和Python一起)。

Also supports jQuery and even lets you use jQuery (along with vanilla Javascript or Python) in its powerful macro IDE.

code完成例如:

<script type="application/x-javascript">
    var obj = {};
    obj.personnel = [{firstName:"John", lastName:"Brick", age:43},
                     {firstName:"Jane", lastName:"Motte", age:26}
                    ];
    // now type obj. and code completion immediately offers you "personnel"
    // note: file must be saved for the app to find all members of declared
    // variables, but I save about every 10 seconds so it's not a problem
</script>

这篇关于JavaScript的code completition做对吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆