工具方法

This commit is contained in:
CoderLambert
2023-03-16 15:49:59 +08:00
parent 583302017c
commit b438575e41
+17
View File
@@ -0,0 +1,17 @@
{
"snake": {
"prefix": "snake",
"body": "${1/(^[A-Z][a-z]*|[a-z])([A-Z])?/${1:/downcase}${2:+_}${2:/downcase}/g}"
},
"kebab-base": {
"prefix": "kebab",
"body": "${1/(^[A-Z][a-z]*|[a-z])([A-Z])?/${1:/downcase}${2:+-}${2:/downcase}/g} ---- ${2}"
},
"query-params": {
"prefix": "krqp",
"body": [
"${1}",
"${1/([\\w]+)(:\\s?\\w+)(,{0,1})/${1}${3:+,}/g}"
]
}
}