R Studio - Code folding includes last blank line?

Viewed 142

I'm using R Studio desktop and trying to use code folding. My code looks like this:

# first ----
test1 <- 1

# second ----
test2 <- 2

# third ----
test3 <- 3

# fourth ----
test4 <- 4

When it folds, I want it to look like this:

# first <>

# second <>

# third <>

# fourth <>

But instead, it looks like this:

# first <>
# second <>
# third <>
# fourth <>

Is there a way to make R Studio not include the last blank line in the fold? I don't remember this being an issue when I was using R Studio Server, but I can't confirm that at this time.

0 Answers
Related