Skip to content

Is block comment working for anyone? #8395

Answered by juliasilge
tomasrei asked this question in Q&A
Discussion options

You must be logged in to vote

Ah OK, you might check out this section on Wikipedia to learn about block and line comments.

This is a block comment:

/*
 * My great comment!
 */

This is three line comments:

# 
# My great comment!
#

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.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@tomasrei
Comment options

@tomasrei
Comment options

@snestler
Comment options

@juliasilge
Comment options

Answer selected by tomasrei
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants