javascript 编写javascript代码的工具
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7371107/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Tool for writing javascript code
提问by antonjs
I tried different tool for writing javascript code such as netBeam and eclipse.
我尝试了不同的工具来编写 javascript 代码,例如 netBeam 和 eclipse。
They are great tool for developing javascript library but they have the disadvantages to rely on java which is not very fast at all for my laptop (1GB of memory and 1.1Ghz CPU).
它们是开发 javascript 库的好工具,但它们的缺点是依赖 java,这对于我的笔记本电脑(1GB 内存和 1.1Ghz CPU)来说根本不是很快。
Can you please suggest me an open source tool to help developers writing JavaScript libraries?
你能给我推荐一个开源工具来帮助开发人员编写 JavaScript 库吗?
回答by Sahil Muthoo
回答by Zirak
You have tons of options.
你有很多选择。
- Vim
- Emacs
- Sublime Text
- WebStorm(and friends)
- Aptana
- Notepad++
- SCiTE
- Notepad2
- TextMate(or e Text Editor, its Windows clone)
- Coda
- And more
A javascript library is just a regular piece of code. Try several, and pick whichever one you like best.
一个 javascript 库只是一段普通的代码。尝试几种,然后选择您最喜欢的一种。
For the debugging part, the two major browsers (talking about actual browsers, not IE) Chrome and FireFox both have great debugging tools. Chrome has the built in Developer Tools(Ctrl-Shift-I to launch) and ff has FireBug.
对于调试部分,Chrome 和 FireFox 两大浏览器(说的是实际浏览器,不是 IE)都有很棒的调试工具。Chrome 有内置的开发者工具(Ctrl-Shift-I 启动),ff 有FireBug。
回答by Jamie Dixon
回答by Noor Khan
i Used Google Web Toolkit for Writing JavaScript Code it's easy and fastest.
我使用 Google Web Toolkit 编写 JavaScript 代码,它既简单又快捷。
回答by Jose Faeti
Edit
编辑
Noticed now that you were looking for an Open Source one, while you have to buy the one I suggested. My choice for an open source solution is NetBeans.
现在注意到您正在寻找一个开源的,而您必须购买我建议的那个。我选择的开源解决方案是NetBeans。
Are you looking for an editor?
你在找编辑吗?
So far the best I could find is Sublime Text 2.
到目前为止,我能找到的最好的是Sublime Text 2。
It's lightweight, fast and with many features. It aims at increasing your productivity by using only needed things.
它轻巧、快速且具有许多功能。它旨在通过仅使用需要的东西来提高您的生产力。
So far there is a good support for JavaScript, with many snippets, auto completion and good syntax highlighting. You can write a function statement by only typing fun+TAB for example. So far it's the best editor I've tried.
到目前为止,对 JavaScript 的支持很好,有很多片段、自动完成和良好的语法突出显示。例如,您只需键入 fun+TAB 即可编写函数语句。到目前为止,它是我尝试过的最好的编辑器。