• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 606
  • Last Modified:

Writing Javascript in Visual Studio 2005

I am writing a bunch of Javascript in visual studio for my applications and i was wondering if there is anyway to get it to auto format.  I am writing some pretty big IF statements etc but get lost in them as i am not laying things out properly. :$  Is there an auto format feature somewhere that i can use to make it cleaner?  Also is there anyway to debug javascript at all?  I also have the Antechinus program that is a javascript editor but hasnt helped me out much...
0
TheRookie32
Asked:
TheRookie32
  • 2
1 Solution
 
Bob LearnedCommented:
1) Format Javascript online:

   http://javascript.about.com/library/blformat.htm

2) Debugging Javascript can be done a few ways

  If you are allowed to debug script code, then you can use this line:
     debugger;

  If you are using Internet Explorer, there is an advanced option to Disable script debugging that needs to be unchecked.

  In the IDE, there is a debug option to show running documents, where you can put breakpoints to step through Javascript code.

Bob
0
 
TheRookie32Author Commented:
What is that editor formatting against and what standard is it using?  W3C standard?

Thanks!
0
 
Bob LearnedCommented:
You tell me!! ;)  

Bob
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now