Is block comment working for anyone? #8395
-
Hi! Just wondering if anyone is having issues with block comments (Shift+Alt+a)? Nothing happens when I press it. |
Beta Was this translation helpful? Give feedback.
Answered by
juliasilge
Jul 6, 2025
Replies: 1 comment 4 replies
-
Is this for R? I believe both R and Python only support single line comments, right? What were you hoping to see in terms of a block comment? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ah OK, you might check out this section on Wikipedia to learn about block and line comments.
This is a block comment:
This is three line comments:
R only has line comments, not block comments. You might try out using the Toggle Line Comment command for the behavior you are looking for to comment selected lines. You can use the built in keyboard shortcut Ctrl/Cmd+/., or you can opt in to RStudio keybindings and then use Ctrl/Cmd+Shift+C.