From 0e5258ddc2169ed5e4f2b8125932f9ad92234656 Mon Sep 17 00:00:00 2001 From: Kun Ren Date: Wed, 16 Feb 2022 22:45:44 +0800 Subject: [PATCH] Preserve selected text --- snippets/rmarkdown.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/rmarkdown.json b/snippets/rmarkdown.json index 451b88845..7924e0d08 100644 --- a/snippets/rmarkdown.json +++ b/snippets/rmarkdown.json @@ -72,7 +72,7 @@ "prefix": "code chunk", "body": [ "```{${1:language}}", - "$0", + "${TM_SELECTED_TEXT}$0", "```" ], "description": "Insert code chunk" @@ -81,7 +81,7 @@ "prefix": "r code chunk", "body": [ "```{r}", - "$0", + "${TM_SELECTED_TEXT}$0", "```" ], "description": "Insert R code chunk"