Skip to content

Instantly share code, notes, and snippets.

@Fred-Vatin
Last active November 29, 2022 20:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fred-Vatin/976a0c4fa3b525452472731d90f25f06 to your computer and use it in GitHub Desktop.
Save Fred-Vatin/976a0c4fa3b525452472731d90f25f06 to your computer and use it in GitHub Desktop.
deprecated
[
/* ===================== > GENERAL ====================== */
// Fold current node
{
"key": "ctrl+6",
"command": "editor.fold",
"when": "editorTextFocus"
},
// Unfold current node
{
"key": "ctrl+=",
"command": "editor.unfold",
"when": "editorTextFocus"
},
/* ====================== > FOLD PLUS ======================
Extension required: Fold Plus
Install command: ext install dakara-foldplus
Description: Additional fold commands
*****************************************************************/
// Fold all blocks that are at the same level as cursor
{
"key": "ctrl+k f5",
"command": "dakara-foldplus.levelAtCursor",
"when": "editorTextFocus"
},
// Fold all blocks that contains the selected text
{
"key": "ctrl+k f6",
"command": "dakara-foldplus.selection",
"when": "editorTextFocus"
},
// Fold all blocks but the ones wich contain selected text
{
"key": "ctrl+k f7",
"command": "dakara-foldplus.selection.exclude",
"when": "editorTextFocus"
},
// Fold all blocks but keep the one where the cursor is
{
"key": "ctrl+k f8",
"command": "dakara-foldplus.cursor.exclude",
"when": "editorTextFocus"
}
]
@izerozlu
Copy link

Thanks for the keybindings, but i don't know how to apply these to vscode. Can you elaborate?
Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment