How to collapse the function body in Visual Studio 2010?

I'm new to Visual Studio 2010, and I miss one Notepad ++ feature that is crashing ...

Where can I use this option in Visual Studio and Resharper?

enter image description here

+4
source share
5 answers

Take a look at this and let me know what you think. http://jsoutlining.codeplex.com/ This Visual Studio add-on will allow you to expand and collapse css and javascript files in the same way as you can with regular .cs (or .vb) files.

+3
source

Ctrl + M, Ctrl + O to collapse the function body

+6
source

At least for .css files:
You can add glyphs wherever you wish:

  • Select a few lines (which should be highlighted), and then
  • Press Ctrl + M, Ctrl + H.

You now have a defined glyph. You can close the file and open it again - the remaining glyphs remain.

0
source

Visual studio lacks the extension / anti-aliasing option for CSS files.

In some files, such as C # / VB class files, you can outline the code using “regions” or automatically by setting it in “Tools” → “Options” → “Text Editor” → your language → Formatting, but this does not apply to CSS.

All the best

0
source

I would recommend the Web Essentials extension [http://visualstudiogallery.msdn.microsoft.com/6ed4c78f-a23e-49ad-b5fd-369af0c2107f] .

In addition to the desired function, it provides an excellent set of others.

0
source

Source: https://habr.com/ru/post/1402400/


All Articles