1

I know there is the shortcut ctrl + w in visual studio for selecting current word. Is there a shortcut or an extension for jupyter notebook which does the same?

KaliTheGreat
  • 579
  • 6
  • 17

1 Answers1

3

Hah! I found the answer shortly after putting a bounty out. On Chromebook (in Colab) it's CTRL+D. Presumably this works in Jupyter and on Windows also. On Mac it may be CMD+D, but I haven't tried.

The winning tip came from two other answers on keyboard shortcuts in Jupyter:

Wolfram Arnold
  • 7,159
  • 5
  • 44
  • 64
  • 2
    on mac cmd+d will delete the line! – George Pligoropoulos Jan 15 '22 at 16:40
  • It won't work in Jupyter as in Colab, as `CTRL+D` (Windows & Linux) and `CMD+D` (Mac) is a shortcut for deleting the current line. I am not sure if there is a similar command in Jupyter, but the closest approach I know is `ESC+F` which opens "find & replace" so you can replace all the word's repetitions at once. – Mina Melek Feb 13 '22 at 19:51
  • I'm on Ubuntu linux, and until today, `control`+`d` deleted the current line. Now it selects the current word instead, and ***no*** combination of modifiers with `d` seems to delete a single line. Not too please. – MRule Jun 13 '23 at 17:18