Home > OS >  vscode, what is the shortcut for this (close/open function block)?
vscode, what is the shortcut for this (close/open function block)?

Time:09-05

in vscode (ide)

enter image description here

how to click this icon, without mouse.


so closed become like this:

enter image description here


and opened like this:

enter image description here

CodePudding user response:

documentation say:

the documentation suggests using these shortcuts, so try to use them too...

shortcut what it does?
CTRL SHIFT [ close
CTRL SHIFT ] open

the shortcut you are asking for is called fold/collapse

see here the PDF: enter image description here

but in my case seems different,
so if don't work also for you see the next part below.

what worked for me

  1. open the vscode search bar by using CTRL P

  2. write >shortcut

enter image description here

  1. now it will open a table, search fold

enter image description here

  1. now you will see in the command column of the table

    • editor.unfold
    • editor.fold
  2. use that shortcut you see in the second column, or change it to the more comfortable one

enter image description here enter image description here

  • Related