vscode-R icon indicating copy to clipboard operation
vscode-R copied to clipboard

[Feature request] Add `%>%` and `+` to code fold rules

Open jooyoungseo opened this issue 2 years ago • 0 comments

In the following code example, the code fold feature Ctrl+Shift+[]) does not work. I was wondering if there would be any way for us to add %>% and + to code folding rules.

library(tidyverse)

mpg %>%
    mutate(class = fct_rev(fct_infreq(class))) %>%
    ggplot(aes(x = class, fill = class)) +
    geom_bar(show.legend = FALSE) +
    coord_flip()

jooyoungseo avatar Apr 13 '22 14:04 jooyoungseo