简体   繁体   English

如何在 Jupiter notebook 中同时删除几行代码?

[英]How could i delete several lines of code at the same time in Jupiter notebook?

I want to delete/tab several lines of code at the same time in Jupiter notebook.我想在 Jupiter notebook 中同时删除/制表几行代码。 how could i do that?我怎么能这样做? Is there hot keys for that?有热键吗?

  1. While in the notebook, click to the left of the grey input box where it says In []: (You'll see the highlight color go from green to blue)在笔记本中,单击灰色输入框左侧的 In []: (您会看到高亮颜色 go 从绿色变为蓝色)
  2. While it's blue, hold down shift and use your up arrow key to select the rows above or below当它是蓝色时,按住 shift 并使用向上箭头键 select 上方或下方的行
  3. Press D twice按 D 两次
  4. Click back into the cell and the highlight will turn back to green.单击返回单元格,突出显示将变回绿色。

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

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