Home > Blockchain >  What is this arrow in the code editor's gutter that allows collapsing code blocks called? How c
What is this arrow in the code editor's gutter that allows collapsing code blocks called? How c

Time:01-21

What do you call this?

screenshot of the arrow

I want to organize my code, and be able to click that little arrow and shadow certain things onto it, take this for example, I want to hide it under my comment # Words like this:

screenshot of what I want to hide

I use visual studio code and I'm working with python.

Some keywords that might be related: Bookmarks, whatever popovers are, and 'ribbons'.

CodePudding user response:

This is called "code folding".

To do it with arbitrary blocks of lines of codes, there is no built-in functionality to do this as far as I know, but you should be able to achieve that with the maptz.regionfolder extension or other similar ones.

  • Related