Elegant Code
Elegant Code

Reputation: 690

Is there a keyboard shortcut to select a line in Jupyter lab?

Is there a keyboard shortcut to select a single line (current line, where the marker is) in Jupyter lab notebooks?

Upvotes: 3

Views: 3954

Answers (2)

XitXat
XitXat

Reputation: 57

With cursor in the line press Home then Shift+End or End then Shift+Home

Upvotes: 3

khari-sing
khari-sing

Reputation: 780

I am assuming here that you need the selected line to be cut, copy, or paste. Jupyter Notebook like vscode will automatically select the entire line, when no text selected. All you have to do is keep your cursor somewhere on the line and do the usual Ctrl+c, Ctrl+v commands.

This is not very intuitive because the entire line is not highlighted, but it serves the purpose.

Upvotes: 5

Related Questions