From 789fe424ccd73345b8258db7117da798db7e43cc Mon Sep 17 00:00:00 2001 From: Simon Martens Date: Mon, 26 Jun 2023 13:47:50 +0200 Subject: [PATCH] =?UTF-8?q?Snippets=20f=C3=BCr=20marg,=20bzg,=20link,=20su?= =?UTF-8?q?blink=20siehe=20Beispiele?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/xml.code-snippets | 52 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .vscode/xml.code-snippets diff --git a/.vscode/xml.code-snippets b/.vscode/xml.code-snippets new file mode 100644 index 0000000..c558f9d --- /dev/null +++ b/.vscode/xml.code-snippets @@ -0,0 +1,52 @@ +{ + // Place your hamann-xml workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and + // description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope + // is left empty or omitted, the snippet gets applied to all languages. The prefix is what is + // used to trigger the snippet and the body will be expanded and inserted. Possible variables are: + // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. + // Placeholders with the same ids are connected. + // Example: + // "Print to console": { + // "scope": "javascript,typescript", + // "prefix": "log", + // "body": [ + // "console.log('$1');", + // "$2" + // ], + // "description": "Log output to console" + // } + + "Marginalie einfügen": { + "scope": "xml", + "prefix": "marg", + "body": [ + "", + "${5:Text}", + "" + ] + }, + + "Verweis auf Kommentarstelle": { + "scope": "xml", + "prefix": "link", + "body": [ + " $3" + ] + }, + + "Verweis auf Sub-Kommentarstelle": { + "scope": "xml", + "prefix": "sublink", + "body": [ + " $4" + ] + }, + + "Bezug": { + "scope": "xml", + "prefix": "bzg", + "body": [ + "${1:Bezugstext} $2" + ] + } +} \ No newline at end of file