microsoft / vscode-jupyter

VS Code Jupyter extension
https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter
MIT License
1.25k stars 275 forks source link

Enable `shift` + `J`/`K` for selecting a range of cells #15323

Open joelostblom opened 4 months ago

joelostblom commented 4 months ago

In JupyterLab you can use shift + j/k just like shift + up/down arrow to select a range of cells. It would be convenient to have this in VS Code as well.

amunger commented 4 months ago

It seems reasonable to add this to the Jupyter Keymap extension, thanks for the suggestion.

You can also do this yourself if you add this to your keybindings.json:

    {
        "key": "shift+j",
        "command": "list.expandSelectionDown",
        "when": "listFocus && listSupportsMultiselect && !inputFocus && !treestickyScrollFocused"
    },
    {
        "key": "shift+k",
        "command": "list.expandSelectionUp",
        "when": "listFocus && listSupportsMultiselect && !inputFocus && !treestickyScrollFocused"
    }
joelostblom commented 3 months ago

This works great, thanks for the workaround!