65.9K
CodeProject is changing. Read more.
Home

Handle CSS File with Visual Studio 2012

starIconstarIconstarIconemptyStarIconemptyStarIcon

3.00/5 (4 votes)

Dec 4, 2013

CPOL
viewsIcon

12530

How to handle CSS file with Visual Studio 2012

Introduction

This short tip will show you how to handle CSS file with Visual Studio 2012.

Using the Code

  1. You can make the regions:
    /* #region Header */
    
    #header
    {
        width: 100%;
        height:  90px;
    }
    
    /* #endregion */
  2. You can use some shortcuts to collapse, expand, etc.
    • To collapse all: CTRL + M + O
    • To expand all: CTRL + M + L
    • To collapse/expand the current selection: CTRL + M + M
    • To expand all & disable outlining: CTRL + M + P