added snippets

This commit is contained in:
Phani Pavan K
2025-12-15 14:35:20 +05:30
parent e4f83f8d5a
commit b4def0815d
2 changed files with 16 additions and 0 deletions

8
extension.toml Normal file
View File

@@ -0,0 +1,8 @@
id = "latexnips"
name = "Latex Snippets"
version = "0.1.1"
schema_version = 1
authors = ["Phani Pavan K <kphanipavan@gmail.com>"]
description = "Common Latex Snippets, common action from overleaf toolbar."
repository = "https://git.pvnweb.dedyn.io/phanipavank/latexnips"
snippets = "./snippets/latex.json"

8
snippets/latex.json Normal file
View File

@@ -0,0 +1,8 @@
{
"Insert Figure": {
"scope": "latex",
"prefix": "\\fig",
"body":"\\begin{figure}\n\\centering\n\includegraphics[width=1\\linewidth]{${1:fig_path}}\n\\caption{${2:caption}}\n\label{fig:${3:label}}\n\\end{figure}",
"description": "Inserts a figure",
}
}