-1

It used to be, that when I would type:

#div{

and hit "return", Visual studio would autocorrect to:

#div
{

as well as a number of other things. That is just the easiest example. It also doesn't automatically indent the next line...

I am using Visual Studio 2008 SP1.

I've looked through Tools>Options and nothing really jumped out at me. I'm sure it's just some kind of pebkac error on my part, so any assistance would be greatly appreciated.

3
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by BrianHelp
0

div is a tag. you cant use it as id. remove # sign. ya visual studio automatically formats it so its easier to read. whats your exact problem?

0

sorry, that was poorly written it should be "#divid"

Really my problem is just one of ease of use. It used to do that, now it doesn't. It's not really a big deal if not, just so much more convenient.

0
#div{
...
}

If you want to apply a style to all div tags you should use this code instead.

div {
...
}

dots are the styles you want to apply. If you typed the new code VS 2010 should auto format for you as long as there are no other mistakes in the css or other areas.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.