Custom format document option in visual studio. Formatting CSS tags.

Posted by Batu on Stack Overflow See other posts from Stack Overflow or by Batu
Published on 2010-03-17T16:19:23Z Indexed on 2010/03/17 16:21 UTC
Read the original article Hit count: 351

Hi,

When i work in VS2008, i use the Ctrl+K+D very often as it saves a lot of time.

But in CSS files, this command formats the document in a way i don't quite like.

For example when i auto format the document,

.Foo
{
width:1px;
height:2px;
}

However, i like to format tags this way, as it is much more easy to read (in my opinion):

.Foo
{ width:1px;
  height:2px; }

So, are there any way that i can implement this ?

The "Tag specific options" feature seems to be the thing that i need, but i am not quite sure how to do this.

Thanks.

© Stack Overflow or respective owner

Related posts about visual-studio-2008

Related posts about autoformatting