Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
greazer opened this issue Jun 17, 2020 · 1 comment
Closed

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

greazer opened this issue Jun 17, 2020 · 1 comment

Comments

@greazer
Copy link
Contributor

greazer commented Jun 17, 2020

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

@greazer greazer changed the title Python script cell (% ##) keyboard shortcuts Python script cell (# %%) keyboard shortcuts Jun 17, 2020
@luabud
Copy link
Member

luabud commented Aug 13, 2020

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)

@DonJayamanne DonJayamanne transferred this issue from microsoft/vscode-python Nov 13, 2020
@greazer greazer closed this as completed Aug 3, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants