Keyboard shortcut for commenting multiple lines in the Python node?

I tried hunting around without much luck.
I know I can highlight multiple lines and hit tab to add an indent all at once (Not that I can make much use of it, since I’d rather use 4 spaces :roll_eyes:), so I was hoping there was a keyboard shortcut for commenting multiple lines of code at once. But, alas, I can’t find a list of keyboard shortcuts, and my guesses so far haven’t worked.

I know I could just use a better IDE and copy and paste in, but sometimes I just want to make a quick change and would rather not copy and paste it out and back in.

Commenting multiple lines as below? Or were you after a different solution?
image

2 Likes

Hello,
as far as I know, there is no function similar to this (but it’s a good idea to implement if possible)
example in SublimeText
comment lines in IDE

I have a dream :smiley:

photomontage

1 Like

I believe it was Dimitar Venkov who posted a solution to this a while back on this forum (can’t find that specific post). You can hold down the ‘Alt’ button on your keyboard and then drag the mouse in front of your code. Let go of Alt and then you can edit multi-line, like so:
DynamoPythonMultiComment

9 Likes

Imagine having an even just somewhat fleshed out IDE in Dynamo. :smiling_face_with_tear:

Good enough for me! Thanks!

1 Like