From 1448beef39403de81d6e0dd7c71a501c30eddbb7 Mon Sep 17 00:00:00 2001 From: Dominik Becker Date: Fri, 3 Jan 2020 08:09:00 +0000 Subject: [PATCH] #28 added VS Code snippet for chapters, sections and subsections --- .vscode/latex.code-snippets | 35 +++++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/.vscode/latex.code-snippets b/.vscode/latex.code-snippets index 32dba15..5b9c4f6 100644 --- a/.vscode/latex.code-snippets +++ b/.vscode/latex.code-snippets @@ -1,5 +1,5 @@ { - "Figure": { + "figure": { "scope": "latex", "prefix": "fig", "body": [ @@ -13,7 +13,7 @@ ] }, - "Code Listing": { + "code listing": { "scope": "latex", "prefix": "lst", "body": [ @@ -26,7 +26,7 @@ ] }, - "Table": { + "table": { "scope": "latex", "prefix": "tab", "body": [ @@ -91,4 +91,31 @@ "prefix": "ac", "body": "\\autocite[vgl.][${2:page}]{${1:bibentry}}" }, -} \ No newline at end of file + + "chapter": { + "scope": "latex", + "prefix": "chap", + "body": [ + "\\chapter{$1}", + "\\label{chap:$2}" + ] + }, + + "section": { + "scope": "latex", + "prefix": "sec", + "body": [ + "\\section{$1}", + "\\label{sec:$2}", + ], + }, + + "subsection": { + "scope": "latex", + "prefix": "subsec", + "body": [ + "\\subsection{$1}", + "\\label{sec:$2}", + ], + }, +}