I don't see anything in the Ruby bundle that will help me add comments to a large block of code. The links I have found online to such a shortcut do not appear to be valid any more.
The leading characters // are added to the beginning of each line when commenting one or more lines of code. You can also block comment multiple lines of code using the characters /* */ .
Comment Code Block Ctrl+K+C/Ctrl+K+U If you select a block of code and use the key sequence Ctrl+K+C, you'll comment out the section of code.
If you use RStudio, you can use the keyboard shortcut Ctrl + Shift + C ( Command + Shift + C on macOS) to comment out a line of text.
It's not Ruby-specific: the same shortcut works for every languages and is found in the "Source" bundle.
It's Cmd/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With