From ae0abe371f564f05067b68b19b1cf82ad5225ad1 Mon Sep 17 00:00:00 2001 From: ArthurFlag Date: Wed, 28 May 2025 09:53:39 +0200 Subject: [PATCH] add snippet file --- .gitignore | 3 ++- .vscode/docker.code-snippets | 42 ++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 .vscode/docker.code-snippets diff --git a/.gitignore b/.gitignore index 72f90137613a..c0bb912ebb73 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ **/.DS_Store **/desktop.ini -.vscode +.vscode/settings.json +.vscode/tasks.json node_modules .hugo_build.lock resources diff --git a/.vscode/docker.code-snippets b/.vscode/docker.code-snippets new file mode 100644 index 000000000000..200264824d67 --- /dev/null +++ b/.vscode/docker.code-snippets @@ -0,0 +1,42 @@ +{ + "Insert Hugo Note Admonition": { + "prefix": ["admonition", "note"], + "body": ["> [!NOTE]", "> $1"], + "description": "Insert a Hugo note admonition", + }, + "Insert Hugo Important Admonition": { + "prefix": ["admonition", "important"], + "body": ["> [!IMPORTANT]", "> $1"], + "description": "Insert a Hugo important admonition", + }, + "Insert Hugo Warning Admonition": { + "prefix": ["admonition", "warning"], + "body": ["> [!WARNING]", "> $1"], + "description": "Insert a Hugo warning admonition", + }, + "Insert Hugo Tip Admonition": { + "prefix": ["admonition", "tip"], + "body": ["> [!TIP]", "> $1"], + "description": "Insert a Hugo tip admonition", + }, + "Insert Hugo Tabs": { + "prefix": ["admonition", "tabs"], + "body": [ + "", + "{{< tabs >}}", + "{{< tab name=\"$1\">}}", + "", + "$2", + "", + "{{< /tab >}}", + "{{< tab name=\"$3\">}}", + "", + "$4", + "", + "{{< /tab >}}", + "{{}}", + "", + ], + "description": "Insert a Hugo tabs block with two tabs and snippet stops for names and content", + }, +}