Add JSON.stringify snippets
This commit is contained in:
1 parent
28653f22e0
commit
fb785009b4
1 file changed
+13
@@ -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
|
||||||
Reference in new issue
Block a user