kasecato / vscode-intellij-idea-keybindings

Port of IntelliJ IDEA key bindings for VS Code.
https://marketplace.visualstudio.com/items?itemName=k--kato.intellij-idea-keybindings
MIT License
813 stars 135 forks source link

keybindings of jupyter notebook #281

Closed Windrain7 closed 4 months ago

Windrain7 commented 1 year ago

After the tool is enabled, the keybindings of jupyter notebook is also modified. For example, ctrl+enter cannot execute the current cell.

kasecato commented 1 year ago

@Windrain7 seems it was enabled notebook plugin by default in VS Code, and it was duplicated some keybindings. Released v.1.5.8, please check it

Windrain7 commented 1 year ago

@Windrain7 seems it was enabled notebook plugin by default in VS Code, and it was duplicated some keybindings. Released v.1.5.8, please check it

Now shift+enter can run the current cell and move to the next cell, but ctrl+enter cannot run the current cell.

kasecato commented 1 year ago

Ah, you're using macOS right? I found the keybindings of macOS binds Ctrl+Enter to Notebook: Execute Cell and Notebook: Stop Editing Cell. Let me fix it on v1.5.9

kasecato commented 1 year ago

@Windrain7 I just released v1.5.9, please check it

Windrain7 commented 1 year ago

Ah, you're using macOS right? I found the keybindings of macOS binds Ctrl+Enter to Notebook: Execute Cell and Notebook: Stop Editing Cell. Let me fix it on v1.5.9

Actually, I am using Windows. When I use v1.5.9, ctrl+enter still cannot execute the current cell.

kasecato commented 1 year ago

Windows/Linux default keybinding is ctrl+alt+enter. macOS is ctrl+enter. Do you want to change it to ctrl+enter for Windows?

Windrain7 commented 1 year ago

Windows/Linux default keybinding is ctrl+alt+enter. macOS is ctrl+enter. Do you want to change it to ctrl+enter for Windows?

To be more specific, I use the Windows and Pycharm. Jupyter Notebook originally bound Ctrl+Enter to the Run Cell, and Shift+Enter to the Run Cell and Select Below . However, these shortcuts conflict with original shortcuts of Pycharm. So when running Jupyter notebook in Pycharm, it made changes to the shortcuts. Pycharm following the rules of Jupyter Notebook, still binds Ctrl+Enter to Run Cells and Shift+Enter to Run Cell and Select Below, giving up the original effects of these shortcuts.

ICHx commented 4 months ago

I am using mac and the jupyter.runcurrentcelladvance conflicts with editor.action.insertLineAfter, both using shift+enter

kasecato commented 4 months ago

Need to add a lot of shift+enter mappings

kasecato commented 3 months ago

I'll disable editor.action.insertLineAfter when we editing a jupyter notebook