0

I find it difficult to code in JavaScript when there are so many nested functions or objects within one another that it makes it difficult to modify your code without breaking it. What IDE can be used to expand and collapse code blocks (or lexical scope levels) within JavaScript source code, similar to how regions work in Visual Studio?

dan1st
  • 12,568
  • 8
  • 34
  • 67
JustBeingHelpful
  • 18,332
  • 38
  • 160
  • 245

1 Answers1

1

For old-fashioned IDE, try Eclipse: http://www.eclipse.org/downloads/packages/eclipse-ide-javascript-web-developers/heliosr

But I highly recommend using Sublime Text: http://www.sublimetext.com/

SublimeText doesn't collapse/expand, but it does display gutter lines to indicate how many tab indentations each block of code is. If you go to their site, look at the first demo slide, it shows the indentation of code blocks.

Amy
  • 7,388
  • 2
  • 20
  • 31
  • damn, this Sublime Text is amazing, and so simple! I'm spending the $70. It's well worth it! Think about how much more a developer would save on productivity with the black background and being able to see what they're doing. – JustBeingHelpful Mar 07 '13 at 05:59
  • Yeah it's very awesome! Don't forget to check out the packages too http://wbond.net/sublime_packages/package_control/installation. It'll blow your mind! Get [JSHint plugin](https://github.com/uipoet/sublime-jshint) to check your JavaScript on-save. – Amy Mar 07 '13 at 06:02