5 ms·
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 Tex
by miles_matthias 15y ago
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.
- matthiasb 15y agoWhen 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.
- miles_matthias 15y agoYea 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)
- matthiasb 15y agoI just found out that Eclipse was able to provide code completion on JavaScript file! You have to create a JavaScript project.