Uncomment keyboard shortcut ONLY

Hi there,

Rstudio combines the "comment/uncomment selection" as a single keyboard shortcut. It is (often for me) not convenient in cases. For example,

# a

# b

# c

# d

# e

If I want to use "uncomment" to remove the comments, I cannot remove them all at the same time but have to uncomment them one by one. If I select them together and use the shortcut it will become

# # a
# 
# # b
# 
# # c
# 
# # d
# 
# # e

I think a good solution is that Rstudio designs separate "comment" and "uncomment" keyboard shortcuts to avoid this problem, which is the approach adopted in MATLAB.

2 Likes

If you use Twitter, I suggest you @ Rstudio and add the #rstats tag. You could include screenshots of your examples above to the tweet.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.