Skip to content

Instantly share code, notes, and snippets.

@sturmenta
Last active March 9, 2025 06:25
Show Gist options
  • Save sturmenta/eb93a8e1367d445b2bb81f5263db05f7 to your computer and use it in GitHub Desktop.
Save sturmenta/eb93a8e1367d445b2bb81f5263db05f7 to your computer and use it in GitHub Desktop.
VSCode snippets
{
// TODO: remember: save changes of this on https://gist.github.com/sturmenta/eb93a8e1367d445b2bb81f5263db05f7
//
// ──── global ─────────────────────────────────────────────────────────────────────────────
//
"space-m": {
"prefix": "sp",
"body": [
"// ─────────────────────────────────────────────────────────────────────────────"
],
"description": "spacer medium"
},
// ──── go ────────────────────────────────────────────────────────────────────────────
//
"normal print": {
"prefix": "pr",
"body": [
"fmt.Println(\"$1\")"
],
"description": "normal print"
},
// ──── js / ts ────────────────────────────────────────────────────────────────────────────
//
"normal console.log": {
"prefix": "cl",
"body": [
"console.log('$1')"
],
"description": "normal console.log"
},
"console.log": {
"prefix": "clg",
"body": [
"console.log(`$1`, $1)"
],
"description": "console.log"
},
"console.log json": {
"prefix": "clj",
"body": [
"console.log(`$1`, JSON.stringify($1, null, 2))"
],
"description": "console.log json"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment