4

Is there any extension for VS2013 to make it possible to organize CSS files and collapse and expand some sections of .css files?

2

3 Answers 3

13

Ctrl+M, Ctrl+L (press in order) will toggle the sections

2
  • 2
    Frustrating this isn't the same as the Code window/editor shortcut: CTRL M + O (Collapse to Definitions) Commented Jan 14, 2015 at 15:18
  • After years working with nested scss, I finally found this! Changed my life.
    – DPac
    Commented May 19, 2016 at 16:20
2

You can change the shortcuts under Tools/Options/Environment/Keyboard. Here is a description: https://msdn.microsoft.com/en-us/library/5zwses53.aspx?f=255&MSPPError=-2147217396#Anchor_1

1
  • 1
    Welcome to Stack Overflow! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
    – Brian Ray
    Commented Jan 29, 2016 at 15:02
1

This worked for me (visual studio 2010):

  1. Select lines you want to collapse
  2. Press Ctrl+M and Ctrl+H (in order)

https://msdn.microsoft.com/library/td6a5x4s%28v=vs.100%29.aspx

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.