posit-dev / positron

Positron, a next-generation data science IDE
Other
2.57k stars 79 forks source link

Comment / uncomment shortcuts not working in .Renviron file #2926

Open jmcphers opened 5 months ago

jmcphers commented 5 months ago

Discussed in https://github.com/posit-dev/positron-beta/discussions/154

Originally posted by **jeffkeller-einc** April 29, 2024 In RStudio, I often comment / uncomment multiple lines with `ctrl + shift + c`. In Positron, I have been doing this with `super + /`. However, this shortcut doesn't work when editing my `.Renviron` file, while the equivalent RStudio shortcut did.
jmcphers commented 5 months ago

Kind of related to https://github.com/posit-dev/positron/issues/2887, but note that .Renviron (unlike .Rprofile) isn't actually R code, so we can't turn on the R LSP for it. We probably need this to be a specific file type defined by the R language pack.