TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask YC: What editor/ide do you use to hack javascript?

10 pointsby vikramabout 17 years ago
I've used emacs so far, though it's good at syntax highlighting. I would like something that can show glaring mistakes, like calling a function with the wrong number of arguments, or referring to a variable which hasn't been defined. Thanks.

17 comments

alexsoloabout 17 years ago
Steve Yegge wrote a new js mode for emacs: <a href="http://steve-yegge.blogspot.com/2008/03/js2-mode-new-javascript-mode-for-emacs.html" rel="nofollow">http://steve-yegge.blogspot.com/2008/03/js2-mode-new-javascr...</a>
评论 #155675 未加载
评论 #155583 未加载
评论 #155598 未加载
marroneabout 17 years ago
For finding those kinds of mistakes use jslint (<a href="http://jslint.com" rel="nofollow">http://jslint.com</a>), though it doesnt catch calling a function with the wrong number of arguments (which may be what you intended anyways). If you download the source you can easily write a custom command in vim or emacs to run the current buffer through jslint.
评论 #155595 未加载
astrecabout 17 years ago
I use textmate which has some nice macros for js, jquery, YUI (all of which I use), plus most of the other toolkits. I round it out with jslint and firebug. If you're on a mac it's a pretty compelling package.
评论 #155652 未加载
trevelyanabout 17 years ago
I could use some suggestions as well. I'm using VIM and doing most of the AJAX work manually (with JQuery). js is a pain though -- anyone know a better way to get this stuff done?
评论 #155574 未加载
DanHultonabout 17 years ago
If I can be forgiven the self-link: <a href="http://www.danhulton.com/blog/2008/01/16/integrate-js-lint-into-komodo-edit/" rel="nofollow">http://www.danhulton.com/blog/2008/01/16/integrate-js-lint-i...</a><p>I use Komodo Edit, the free IDE from Activestate. (I'm not associated with them, I just love their editor. Okay, well, they quote me, but once again, because I love their editor.)<p>It supports javascript out-of-the-box, will read into your source files and update it's code hints based on YOUR functions, and can be told to parse the libraries you use and provide coe hints for THOSE functions, too.<p>The only thing I wish they had built-in was the ability to lint it, but I go over how to add that in my article above.<p>And in fact, you can go one step further and use Douglas Crockford's actual (much better) jslint, provided you have rhino installed. I'll have instructions on how to do that up on my blog eventually.
beforebetaabout 17 years ago
Have you tried Aptana (<a href="http://www.aptana.com/" rel="nofollow">http://www.aptana.com/</a>)?. It's a full-fledged Web Development IDE. The JS Editor is especially good and allows for referenced js code lookups from inside html files. It's also available as a regular eclipse add-on.
评论 #155597 未加载
laktekabout 17 years ago
Any of you know of good JS debugging plugins for gEdit ? Its also good for JS editing with automatic indention and syntax highlighting. Only thing I wish I had a built-in debugger. Yet I could cross over to Firefox to check with Firebug.
评论 #331349 未加载
mikeryanabout 17 years ago
BTW Javascript functions accept a variable number of arguments so hopefully none of them will tell you when you've called a function with the wrong number of args.
st3fanabout 17 years ago
Jetbrains' IDEA 7.0 has SUPER support for Javascript. With features like error highlighting, refactoring, code completion, code formatting, etc.<p>More info a <a href="http://www.jetbrains.com/idea/features/javascript_editor.html" rel="nofollow">http://www.jetbrains.com/idea/features/javascript_editor.htm...</a>
shaunxcodeabout 17 years ago
*ix = emacs. win = syn text editor :: <a href="http://syn.sourceforge.net/" rel="nofollow">http://syn.sourceforge.net/</a> I know you can use emacs in windows but somehow using emacs/cygwin etc. in that environment just feels wrong. Like spinning punk records at your upper class cousins wedding or something.
rajuabout 17 years ago
It seems Netbeans now has very good JS support [<a href="http://news.ycombinator.com/item?id=155670" rel="nofollow">http://news.ycombinator.com/item?id=155670</a>]
axodabout 17 years ago
Jedit usually, but an editor is an editor. As long as it looks nice and has line numbering, it's fine IMHO
Kaizynabout 17 years ago
Notepad++ is good for Windows; alternatively, there's a good Eclipse Javascript plug-in.
aschobelabout 17 years ago
vim and firebug<p>How do you write your js?<p>I write a few lines and then test the functionality, reduces the scope of where I have to hunt down bugs.
评论 #155873 未加载
entelarustabout 17 years ago
vim
jamesbrittabout 17 years ago
Notepad.<p>Nah, just kidding; gvim
edw519about 17 years ago
Textpad