Adnan’s Blog

Javascript Formatting

Posted on: July 15, 2009

Like most developer I love jQuery and appreciate the intellisense support in Visual Studio. I am very particular about the format for my code and often use the Document Format option of the IDE. What I noticed was that my braces were never placed on new lines, and I wanted to change this. So here’s what you can do :

  1. In the Tools menu, select Options…
  2. Check the Show all settings options
  3. In the Text Editor > JScript choose the Formatting option.
  4. On the right pane, there are two options under the ‘New lines’ section. Check them as per your requirement.

Javascript Formatting


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Top Posts

Blog Stats

  • 4,275 hits

Top Clicks

  • None


View Adnan Rashid's profile on LinkedIn

Adnan Rashid
%d bloggers like this: