Skip to content

Python script cell (# %%) keyboard shortcuts #1249

Closed

Description

@greazer

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 Yury Gorishniy (@Yura52), Dylan Gregersen (@earthastronaut)

Activity

  1. changed the title [-]Python script cell (% ##) keyboard shortcuts[/-] [+]Python script cell (# %%) keyboard shortcuts[/+] on Jun 17, 2020
  2. luabud commented on Aug 13, 2020

    @luabud
    Member

    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)

  3. locked as resolved and limited conversation to collaborators on Aug 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions