Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions packages/vscode/snippets/next-javascript.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
],
"description": "JavaScript: Next.js get server side props"
},

"ngsp": {
"prefix": "ngsp",
"body": [
Expand Down Expand Up @@ -45,7 +44,6 @@
],
"description": "JavaScript: Next.js custom app"
},

"ncdoc": {
"prefix": "ncdoc",
"body": [
Expand All @@ -66,4 +64,4 @@
],
"description": "JavaScript: Next.js custom document"
}
}
}
48 changes: 43 additions & 5 deletions packages/vscode/snippets/react-typescript.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,32 @@
{
"rimr": {
"prefix": "rimr",
"body": [
"import React from 'react';"
],
"description": "TypeScript: import react"
},
"rimrd": {
"prefix": "rimrd",
"body": [
"import ReactDOM from 'react-dom';"
],
"description": "TypeScript: import React DOM"
},
"rimrs": {
"prefix": "rimrs",
"body": [
"import React, { useState } from 'react';"
],
"description": "Typescript: Import React and useState"
},
"rimrse": {
"prefix": "rimrse",
"body": [
"import React, { useState, useEffect} from 'react';"
],
"description": "Typescript: Import React, useState and useEffect"
},
"rfct": {
"prefix": "rfct",
"body": [
Expand All @@ -16,22 +44,32 @@
},
"ruet": {
"prefix": "ruet",
"body": ["useEffect(() => {", "\t$1", "}, []);"],
"body": [
"useEffect(() => {",
"\t$1",
"}, []);"
],
"description": "TypeScript: useEffect hook"
},
"rust": {
"prefix": "rust",
"body": ["const [${1}, set${1}] = useState(${2});"],
"body": [
"const [${1}, set${1}] = useState(${2});"
],
"description": "TypeScript: useState hook"
},
"ruct": {
"prefix": "ruct",
"body": ["const ${1} = useContext(${2});"],
"body": [
"const ${1} = useContext(${2});"
],
"description": "TypeScript: useContext hook"
},
"rurt": {
"prefix": "rurt",
"body": ["const ${1} = useRef(${2});"],
"body": [
"const ${1} = useRef(${2});"
],
"description": "TypeScript: useRef hook"
}
}
}