简体   繁体   English

如何将 VSCode 上的向下箭头设置为 go 到 Jupyter Notebooks 的行尾?

[英]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.我开始使用 VSCode 来处理 Jupyter Notebooks(我之前一直在使用 Google Colab),最让我烦恼的是,当我在单元格的最后一行并按下向下箭头时,什么也没有发生。 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.在 Google Colab 中,当您按下最后一行的向下按钮时,它会转到行尾,这让我的代码速度更快。

I know that VSCode has a lot of possibilities for customization and configuration, but I don´t have the knowledge for it.我知道 VSCode 有很多自定义和配置的可能性,但我没有这方面的知识。 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.按 Ctrl+Down 转到行尾,Ctrl+Up 用于开始。 For more detailed keyboard shortcuts in VS Code, go to the article Visual Studio Code Key Bindings有关 VS Code 中更详细的键盘快捷键,go 到文章 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".对于 cursor 到 go,当按下向下箭头 (↓) 而不是跳到下一个单元格时,您应该打开键盘快捷键(文件 > 首选项 > 键盘快捷键 [Ctrl+K Ctrl+S] ) 并删除或更改“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 (↑).同样,如果您希望向上箭头 (↑) 具有相同的功能,您应该更改“笔记本:聚焦上一个单元格编辑器”的绑定。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Pylance 在 VSCode Jupyter 笔记本中不起作用 - Pylance not working in VSCode Jupyter notebooks 如何在 jupyter 笔记本(VSCode + Python 扩展)中隐藏单元格 output? - How to hide cell output in jupyter notebooks (VSCode + Python Extension)? VSCODE JUPYTER - 如何在笔记本(.ipynb)中显示与 VSCode 的 python(.py)中相同的自动完成功能? - VSCODE JUPYTER - How to display SAME AUTOCOMPLETION in notebooks (.ipynb) as it is in python (.py) from VSCode? 如何使用 Jupyter Notebooks 进行打印 - How to print with Jupyter Notebooks Formatter Black 不适用于我的 VScode Jupyter Notebooks? - Formatter Black not working for my VScode Jupyter Notebooks? 在 VS 代码中,如果我在单元格的最后一行,我希望向下箭头将我带到行尾,但在最后一行的末尾,go 到下一个单元格 - In VS code, I want the down arrow take me to end of line, if I'm in the last line of a cell, but at the end of the last line, go to next cell 如何合并Jupyter笔记本中的更改 - How to merge changes in Jupyter notebooks 如何设置Jupyter笔记本的来源 - How To Set Sources For Jupyter Notebooks 在 IPython/Jupyter Notebooks 中显示行号 - Showing line numbers in IPython/Jupyter Notebooks 有没有办法让 jupyter 笔记本中的 python showtraceback 可滚动? - Is there a way to make python showtraceback in jupyter notebooks scrollable?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM