简体   繁体   中英

How to make down arrow on VSCode to go to end of line in Jupyter Notebooks?

I'm starting to use VSCode to work with Jupyter Notebooks (I've been using Google Colab before), and the thing that most annoys me is that when I'm at the last line of a cell and press the down arrow, nothing happens. In Google Colab, when you press the down button in the last line, it goes to the end of the line, and it makes me code much faster.

I know that VSCode has a lot of possibilities for customization and configuration, but I don´t have the knowledge for it. Is there a way to change that behaviour?

Pressing Ctrl+Down goes to the end of the line, and Ctrl+Up is for the start. For more detailed keyboard shortcuts in VS Code, go to the article Visual Studio Code Key Bindings

For cursor to go from the beginning of the last line to the end of it when pressing arrow down (↓) instead of jumping to the next cell you should open Keyboard Shortcuts (File > Preferences > Keyboard Shortcuts [Ctrl+K Ctrl+S]) and remove or change bindings for "Notebook: Focus Next Cell Editor". Similarly you should change bindings for "Notebook: Focus Previous Cell Editor" if you want the same functionality for the up arrow (↑).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM