Files
dotfiles/.config/Code/User/snippets/gbs.code-snippets
2024-03-18 00:36:04 +01:00

68 lines
1.6 KiB
Plaintext

{
/*
Die Snippets ermöglichen es euch, anstelle von den Kommentaren einfach die Abkürzungen zu verwenden.
Wenn ihr also zum Beispiel im C-Code die Punkte anmerken wollt, navigiert an die entsprechende Stelle und
tippt dort das Kürzel "pkt" ein. Die VSCode-Autovervollständigung schlägt dann das entsprechende Snippet vor.
Mit TAB kann man dann durch die Eingabefelder ($1, $2) navigieren.
*/
"PUNKTE C" : {
"scope" : "c",
"prefix" : "pkt",
"body": ["// PUNKTE: $1"]
},
"PUNKTE" : {
"scope" : "plaintext,markdown",
"prefix" : "pkt",
"body" : ["PUNKTE: $1"]
},
"ANMERKUNG C" : {
"scope": "c",
"prefix": "anm",
"body" : ["// ANMERKUNG: $1"]
},
"multiline ANMERKUNG C" : {
"scope" : "c",
"prefix": "manm",
"body" : ["/* ANMERKUNG:", "\t$1", "*/"]
},
"ANMERKUNG" : {
"scope": "plaintext,markdown",
"prefix": "anm",
"body" : ["ANMERKUNG: $1"]
},
"KORREKTUR C" : {
"scope" : "c",
"prefix": "krk",
"body" : ["// KORREKTUR: $1 (-$2P)"]
},
"multiline KORREKTUR C" : {
"scope" : "c",
"prefix": "mkrk",
"body" : ["/* KORREKTUR:", "\t$1 (-$2P)", "*/"]
},
"KORREKTUR" : {
"scope" : "plaintext,markdown",
"prefix": "krk",
"body" : ["KORREKTUR: $1 (-$2P)"]
},
"change to multiline KORREKTUR c" : {
"scope" : "c",
"prefix" : "cmkrk",
"body" : [
"\n/* KORREKTUR:",
"\t${TM_CURRENT_LINE/.+KORREKTUR: (.*) \\(-P\\) .*/$1/}",
"\t(-$2P)",
"*/"
]
},
"change to multiline ANMERKUNG c" : {
"scope" : "c",
"prefix" : "cmanm",
"body" : [
"\n/* ANMERKUNG:",
"\t${TM_CURRENT_LINE/.+ANMERKUNG: (.*) c.*/$1/}",
"*/"
]
}
}