Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS region not working in Visual Studio 2012

I have the following in my css file but css region doesn't work. There's no collapse or expand icon to click on.

But the C# region is working, just css region isn't.

/*#region shared styles */
.blah { background-color: red; }
.foo { line-height: 1.2em; }
/*endregion */
like image 343
Ray Cheng Avatar asked Oct 24 '12 19:10

Ray Cheng


2 Answers

Your missing the '#' between the '*' and 'endregion'

try

/*#region shared styles */

.blah { background-color: red; }

.foo { line-height: 1.2em; }

/*#endregion */
like image 121
user1932625 Avatar answered Sep 27 '22 16:09

user1932625


Not sure why, but after doing this, it works now:

  • type region in css file and then press tab twice
  • it automatically insert the css region signature

after that, it works on newly created css regions. but my old css region still doesn't work.

enter image description here

like image 25
Ray Cheng Avatar answered Sep 27 '22 16:09

Ray Cheng