Linked Questions

7 votes
1 answer
23k views

I want to fold the following lines of code in VSCode x = np.linspace(0, 20, 100) plt.plot(x, np.sin(x)) plt.show() How do I do this? ctrl + shift + [ only collapses functions.
Nur Afrizal Bashri's user avatar
1 vote
1 answer
7k views

I can't find out how to fold and unfold code (like javascript functions) in Visual Studio Code. In Visual Studio the shortcut is "Ctrl + L", but it doesn't work in Visual Studio Code (not the full ...
Камен Давидков's user avatar
2 votes
1 answer
4k views

I have about 50 lines of C code that I want to collapse. It's at the top-level, containing globals, typedefs, defines, etc. The only way I've figured out how to do this is by making a fake function, ...
samuelbrody1249's user avatar
0 votes
0 answers
297 views

How to apply regions for python code in Visual Studio Code? I would like to do this like in VS C#: #region // some methods #endregion
Tommy Lee Jones w Sciganym's user avatar
-1 votes
1 answer
158 views

I want to group multiple lines of CSS code into a single collapsible section, is there a way to do that in vscode? I tried to use brackets but that didnt work. I tried other things as well but ...
LilScraggy's user avatar
1138 votes
13 answers
973k views

In Visual Studio Professional, we have a shortcut key, Ctrl + M Ctrl + O to collapse all methods and properties in a class. How can I do a similar thing in Visual Studio Code? I know there are ...
eadam's user avatar
  • 26.8k
842 votes
15 answers
1.2m views

Microsoft recently released Visual Studio Code and I am a little confused about its usage, since Visual Studio has lot of functional similarities with it.
Aswajith's user avatar
  • 9,397
337 votes
6 answers
360k views

Trying to find the equivalent to Ctrl + Shift + - in Intellij that collapses/expands all functions.
michali's user avatar
  • 3,962
33 votes
5 answers
63k views

By "VS Code" I mean the lightweight text editor not the monolithic IDE, unfortunately searching this on google will bring up many pieces of irrelevant information about how to do this in Visual Studio....
Sajuuk's user avatar
  • 3,129
16 votes
5 answers
17k views

I have a codebase with many comments, how can I hide these, without deleting them since I will need them later. I want to hide all the comments with one click or keystroke, not a simple collapse of ...
Olek's user avatar
  • 529
17 votes
4 answers
11k views

Is it possible to customize the way code folding works in Visual Studio Code? I use a common pattern of defining regions of code across a variety of different document types. So, for XML I wrap ...
Stephen Ellis's user avatar
6 votes
1 answer
8k views

Is there a way to fold/expand a large selection of functions(javascript code) in Visual Studio Code?
Alain BUFERNE's user avatar
6 votes
3 answers
6k views

How do I fold or collapse an arbitrary selection of code in Visual Studio Code? Is this feature supported? Of course Sublime and Atom know this for ages.
Qwerty's user avatar
  • 32.5k
11 votes
3 answers
3k views

So in Visual Studio, if I have a collapsed function code, when I unfold it, it also unfolds all the ifs, switches etc. inside of it. In Visual Studio Code, however, if I go for Fold All (Ctrl+K Ctrl+0)...
minecraftplayer1234's user avatar
9 votes
3 answers
6k views

Summary: I want 2 things: (1) I want my folding symbols in VS Code to be [+][-] (similar to Visual Studio) instead of the default [>][v] one (2) I want my Extensions section can have downloads and ...
Loi Nguyen Huynh's user avatar

15 30 50 per page