Skip to content

Instantly share code, notes, and snippets.

@tanftw
Created August 26, 2019 03:05
Show Gist options
  • Save tanftw/5f388e58951a836d59c426cebefee011 to your computer and use it in GitHub Desktop.
Save tanftw/5f388e58951a836d59c426cebefee011 to your computer and use it in GitHub Desktop.
Shrink/Grow VSCode

Based on this question

https://stackoverflow.com/questions/40949929/how-do-i-select-the-insides-of-div-in-visual-studio-code/40971959#40971959

{
    "key": "ctrl+up",
    "command": "editor.action.smartSelect.grow",
    "when": "editorTextFocus"
},
{
    "key": "ctrl+up",
    "command": "editor.emmet.action.balanceOut",
    "when": "editorTextFocus && editorLangId == html && editorHasSelection"
},
{
    "key": "ctrl+down",
    "command": "editor.action.smartSelect.shrink",
    "when": "editorTextFocus"
},
{
    "key": "ctrl-down",
    "command": "editor.emmet.action.balanceIn",
    "when": "editorTextFocus && editorLangId == html"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment