Foldit provides a command to fold all it
, and other spec definition methods. It's designed with Javascripts Mocha/Jasmine framework in mind, but there's no reason it won't work on other languages and frameworks. By default the following methods will be folded: it
, before
, beforeEach
, after
, afterEach
In a spec file, open the command pallet (Ctrl+Shirt+P) and type "Fold spec methods".
You can configure a keybind for it by adding to keybindings.json the following:
{
"key": "ctrl+k ctrl+i",
"command": "foldit.fold",
"when": "editorTextFocus"
}
This extension contributes the following settings:
foldIt.methodsToFold
: specifies which methods will be folded