Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Learn only one thing at a time, and console.log instead of alert. I like Chrome's JS console. I code in a generic text editor with highlighting but no code completion. If you can't get your code to even parse correctly then it's a problem with writing too much code between runs, not the tools.


I really like Chrome's JS console as well. It's my little sandbox where I can try out some JavaScript until I get it just right.

For editing, I use Sublime Text 2, which just introduced code completion in the last version. It's awesome.


When I saw this post on HN, the first thing I did was to search for "completion" in the page. I have been looking for this feature since I started to write my first JavaScript.

Based on your recommendation, I tried Sublime Text 2. It looks good but the code completion is partial; just like it is in the Chrome console or Visual Studio.

For example, if you type: var req = new XMLHttpRequest(); req.

the methods available for req (instance of XMLHttpRequest) do not show up.


Yea that is true. That's when I would normally open the Chrome console, set a break point, and click through the local variable to see what might work for me, then try it out in the console until I get what I want, then paste it into sublime.

Sublime's auto completion just helps me a lot when I have to repeat things or if I have to change lots of text in different places all at once (tip: hold down command when clicking when you have your cursor somewhere else on the page)


I just found out that Eclipse was able to provide code completion on JavaScript file! You have to create a JavaScript project.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: