Sublime Forum

R comment() prevent line indentation

#1

In the R language there is a function called comment that can be used to insert lengthy comments into code. Sublime Text indents lines following the first, which I find annoying and unaesthetic. For example:

The following is the current behavior of Sublime Text:
comment(“now is the time for all good men [edge of screen is here; there is NO carriage return here]
[space][space]to come to the aid of their party[carriage return here]
[space][space]”)

I’d prefer
comment("now is the time for all good men
to come to the aid of their party
")

Is there a way to get my preferred behavior?

0 Likes

#2

not currently, no. You may want to comment on the following issue to say you’d want it configurable by scope:

0 Likes