3

Is it possible to move the cursor from one script cell to another using a keyboard shortcut using Visual Studio Code i.e. navigating between cells during editing?

I only found the possibility to run single cells but not the possibility of moving only the cursor to the next or to the previous script cell designated by #%%.

starball
  • 20,030
  • 7
  • 43
  • 238
Jorgo
  • 62
  • 5
  • Does `Ctrl+DownArrow` do anything for you? – Mark Oct 28 '22 at 17:21
  • No, 'Ctrl+DownArrow' only scrolls down the page like when using the scrollbar. – Jorgo Nov 02 '22 at 10:03
  • 1
    Came here after searching for the same question (because "run cell and advance" doesn't actually "advance" for me for some reason). It baffles me how this isn't possible! – ru111 Dec 29 '22 at 17:44

1 Answers1

0

You can do this using the Jupyter: Go to Previous Cell and Jupyter: Go to Previous Cell commands in the command palette. They are bound by default to ctrl/cmd+alt+[ and ctrl/cmd+alt+] respectively. Their keyboard shortcut command IDs (if you want to customize your keyboard shortcuts) are jupyter.gotoPrevCellInFile and jupyter.gotoNextCellInFile.

starball
  • 20,030
  • 7
  • 43
  • 238