You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just discovered that the VS Code Python extension came to a similar conclusion and got rid of built-in snippets: microsoft/vscode-python#14781. Lots of the same reasoning, as well.
There's a more recent PR re: disabling snippet-y treatment of keywords to bring the Jedi experience in line with Pylance: microsoft/vscode-python#21194.
Interconnected with posit-dev/positron#7234, posit-dev/positron#3108, and #779.
The existing built-in snippets and my proposed fate for them:
library(${1:package})
source("${1:file.R}")
return(${1:code})
matrix(${1:data}, nrow = ${2:rows}, ncol = ${3:cols})
setGeneric("${1:generic}", function(${2:x, ...}) {\n\tstandardGeneric("${1:generic}")\n})
setMethod("${1:generic}", ${2:class}, function(${2:x, ...}) {\n\t${0}\n})
setClass("${1:Class}", slots = c(${2:name = "type"}))
if (${1:condition}) {\n\t${0}\n}
else {\n\t${0}\n}
else if (${1:condition}) {\n\t${0}\n}
${1:name} <- function(${2:variables}) {\n\t${0}\n}
for (${1:variable} in ${2:vector}) {\n\t${0}\n}
while (${1:condition}) {\n\t${0}\n}
switch (${1:object},\n\t${2:case} = ${3:action}\n)
apply(${1:array}, ${2:margin}, ${3:...})
lapply(${1:list}, ${2:function})
sapply(${1:list}, ${2:function})
mapply(${1:function}, ${2:...})
tapply(${1:vector}, ${2:index}, ${3:function})
vapply(${1:list}, ${2:function}, FUN.VALUE = ${3:type}, ${4:...})
rapply(${1:list}, ${2:function})
`r paste("#", date(), "------------------------------\\n")`
library(shiny)\n\nui <- fluidPage(\n ${0}\n)\n\nserver <- function(input, output, session) {\n \n}\n\nshinyApp(ui, server)
${1:name}_UI <- function(id) {\n ns <- NS(id)\n tagList(\n\t${0}\n )\n}\n\n${1:name} <- function(input, output, session) {\n \n}
The text was updated successfully, but these errors were encountered: