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

Viewed 34

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

1 Answers

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


in my case, docs don't show the correct shortcut,
maybe also to you,
so see the first part for finding yours or create a new custom shortcut

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: https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf

and search collapse and you will find it!

enter image description here

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

Related