Visual Studio 2010 code formatting bug

Visual Studio 2010 code formatting bug

February 25th, 2011 // 2:01 pm @

There is a bit of an issue with VS 2010 code formatting for HTML. Be default you will see HTML code formatted as :

<h3>
        General</h3>

 

To fix this, go to Tools –> Options

image

Select Text Editor-> HTML –> Formatting from the left panel.

Click on the Tag Specific Options.

Select Default Settings –> Client tag supports contents

image

 

On the right panel, under Line breaks, select Before and after.

 

This will give you a code formatting as :

<h3>General</h3>


Category : General

One Comment → “Visual Studio 2010 code formatting bug”


  1. Art

    11 months ago

    Touché


Leave a Reply

Latest Posts

Testimonials

"Amar clearly has a thorough knowledge of Sharepoint, this knowledge, coupled with his professionalism and dedication made him a tremendous asset to the project. He was the key contributor to the later stages of the project delivery effort (the really difficult bit, long hours and hard work that puts huge demands on people), and I can state categorically that without his focussed dedication and hard work we would not have been able to meet the timescales imposed upon the project."

Tim Ellis , Sharepoint Project Manager , Royal Bank of Scotland

Subscribe Now