Z
Z
Zimaell2020-11-19 14:20:36
Visual Studio Code
Zimaell, 2020-11-19 14:20:36

How to hide part of code in Visual Studio Code?

Previously, I had [+] next to the methods in my code, I write in C #, by clicking on them, the methods were hidden (one name remained), it’s convenient, but now they are gone and I can’t collapse, I read in the search that this action can be performed by selecting the text and by pressing Ctrl+M and open Ctrl+H, but nothing happens...
Tell me how to return these [+] or how to hide pieces of code?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2020-11-19
@Zimaell

Try to enclose pieces of code in

#region Свойства
 public string Name{get;set;}
#endregion

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question