Vscode-jupyter: Python script cell (# %%) keyboard shortcuts

Created on 18 Jun 2020  路  1Comment  路  Source: microsoft/vscode-jupyter

Pulled from microsoft/vscode-python#11781

  • insert cell above current cell
  • insert cell below current cell
  • insert cell at current line (start of cursor line and insert # %%\n)
  • delete current cell
  • toggle cell type code and markdown (ideally toggle to markdown would do a block line comment)
  • cut current cell
  • copy current cell
  • select all current cell
  • collapse current cell (for the code folding)
  • split cell (auto insert # %% or equivalent -- Would a snippet suffice?)

cc @Yura52, @earthastronaut

interactive-window-only

Most helpful comment

Here are the commands and the default shortcuts:

Python: Go to Next Cell (Ctrl + Alt + ])

Python: Go to Previous Cell (Ctrl + Alt + [)

Python: Extend Selection by Cell Above (Ctrl + Shift + Alt + [)

Python: Extend Selection by Cell Below (Ctrl + Shift + Alt + ])

Python: Move Selected Cells Up (Ctrl + ; U)

Python: Move Selected Cells Down (Ctrl + ; D)

Python: Insert Cell Above (Ctrl + ; A)

Python: Insert Cell Below (Ctrl + ; B)

Python: Insert Cell Below Position (Ctrl + ; S) (aka Split cell)

Python: Delete Selected Cells (Ctrl + ; X)

Python: Change Cell to Code (Ctrl + ; C)

Python: Change Cell to Markdown (Ctrl + ; M)

>All comments

Here are the commands and the default shortcuts:

Python: Go to Next Cell (Ctrl + Alt + ])

Python: Go to Previous Cell (Ctrl + Alt + [)

Python: Extend Selection by Cell Above (Ctrl + Shift + Alt + [)

Python: Extend Selection by Cell Below (Ctrl + Shift + Alt + ])

Python: Move Selected Cells Up (Ctrl + ; U)

Python: Move Selected Cells Down (Ctrl + ; D)

Python: Insert Cell Above (Ctrl + ; A)

Python: Insert Cell Below (Ctrl + ; B)

Python: Insert Cell Below Position (Ctrl + ; S) (aka Split cell)

Python: Delete Selected Cells (Ctrl + ; X)

Python: Change Cell to Code (Ctrl + ; C)

Python: Change Cell to Markdown (Ctrl + ; M)

Was this page helpful?
0 / 5 - 0 ratings