Add JSON.stringify snippets

master
Hektor Misplon 2021-03-28 10:40:58 +02:00
parent fc095d371c
commit a01b8e883f
1 changed files with 13 additions and 0 deletions

View File

@ -2,3 +2,16 @@ snippet clg "console.log"
console.log($0) console.log($0)
endsnippet endsnippet
snippet Js "JSON.stringify"
JSON.stringify($0)
endsnippet
snippet Jsf "JSON.stringify (formatted)"
JSON.stringify($0, 0, 2)
endsnippet
snippet preJsf "JSON.stringify (formatted and wrapped)"
<pre>
JSON.stringify($0, 0, 2)
</pre>
endsnippet