2
$\begingroup$

I am wondering if there is any shortcut to select all text in the input cell to comment out. Normally to comment a line, I type all the line then use mouse to select all text and then press Alt + /. However, I am curious if there is any way to select all text for commenting out or if you know other ways to comment without having to use the mouse in between.

$\endgroup$
0

1 Answer 1

2
$\begingroup$

You could press Ctrl+. a few times until the whole expression is selected. Or you could press Up until you get to the line between your cell and the cell above in, then press Shift+Down to select your cell.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.