News for hackers. Stuff that matters.
Re:Ask HN: What are your favourite programming shortcuts by fragmede on Friday March 29, 2024 @06:30PM (#39869704)
command-shift-3 in bash comments out the current line and hits enter.
Re:Ask HN: What are your favourite programming shortcuts by khrbtxyz on Saturday March 30, 2024 @12:06AM (#39871746)
Is this something special you have set up on your Mac?

I keep getting screenshots when I hit command-shift-3. https://support.apple.com/en-us/102646

Re:Ask HN: What are your favourite programming shortcuts by khrbtxyz on Saturday March 30, 2024 @03:46AM (#39872733)
Found it in the readline manual

https://tiswww.cwru.edu/php/chet/readline/readline.html#inde...

insert-comment (M-#) Without a numeric argument, the value of the comment-begin variable is inserted at the beginning of the current line.