Skip to content
TheChatArchiveThe Chat Archive
Qwenqwen3-235b-a22b· Alibaba (Qwen)Hugging Face LMArena Human Preference 140K

in jupyter notebook in visual studo code, what is the shortcut for splitting the code…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Geminigemini-2.5-pro’s answer.
  1. User

    in jupyter notebook in visual studo code, what is the shortcut for splitting the code cell into two?

  2. Qwen Assistant

    In Visual Studio Code (VS Code) when working with Jupyter Notebooks, the default keyboard shortcut for splitting a code cell at the cursor is:

    Windows/Linux:

    Ctrl + Shift + Alt + - (minus key)

    macOS:

    Cmd + Shift + Alt + - (minus key)


    Steps to Use the Shortcut:

    1. Open a Jupyter Notebook (.ipynb) file in VS Code.
    2. Double-click the cell to enter edit mode (the cursor should blink inside the cell).
    3. Position the cursor at the line where you want to split the cell.
    4. Press the shortcut (Ctrl + Shift + Alt + - on Windows/Linux or Cmd + Shift + Alt + - on macOS).

    This will split the cell into two separate cells at the cursor location.


    Alternative Methods:

    • Command Palette:

      • Press Ctrl + Shift + P (or Cmd + Shift + P on macOS) to open the Command Palette.
      • Type "Split Cell at Cursor" and select the command to execute it.
    • Right-Click Context Menu:

      • Right-click inside the cell (while in edit mode) and choose "Split Cell" from the context menu.

    Note:

    • Ensure the Jupyter extension is installed and enabled in VS Code for this shortcut to work.
    • The shortcut can be customized in VS Code's keyboard settings if needed.

    By following these steps, you can efficiently split cells in Jupyter Notebooks within VS Code. ✅

    Answer:
    The shortcut is Ctrl + Shift + Alt + - (Windows/Linux) or Cmd + Shift + Alt + - (macOS).

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.