How to get snippets in Positron? #7101
-
I am in the process of migrating from RStudio to Positron, but I am missing my custom snippets. Doing an internet search, I can only find one post that talks about snippets now being available in Ark, but it doesn't say anything about what Ark is or how to implement snippets there. Also, it would be very useful to know how to remove the snippets that arrive by default in Positron. For example, one of those that bothers me the most is the one that applies to the I would greatly appreciate it if someone could help those like me who need that functionality. Thank you very much. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
I'm not sure where the default one is however, the |
Beta Was this translation helpful? Give feedback.
-
As you saw, default snippets for R in Positron are managed here: Ark is effectively the R support for Positron. It manages the snippets because it is in charge of providing the completions for R, which is where snippets come in. You can add your own using that |
Beta Was this translation helpful? Give feedback.
As you saw, default snippets for R in Positron are managed here:
https://github.com/posit-dev/ark/blob/main/crates/ark/resources/snippets/r.code-snippets
Ark is effectively the R support for Positron. It manages the snippets because it is in charge of providing the completions for R, which is where snippets come in.
You can add your own using that
r.json
file mentioned above, but there is currently no way to turn off the ones provided by Ark.