Skip to content

Commit c27372a

Browse files
committed
Add a snippet
1 parent 662fb8c commit c27372a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core/snippets/snippets/debugJson.snippet

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@ name: debugJson
22
description: Print debug output for variable
33
phrase: debug jason
44
insertionScope: statement
5-
65
---
76

87
language: typescript | javascript | typescriptreact | javascriptreact
98
-
109
console.log(`$variable: ${JSON.stringify($variable, undefined, 2)}`);
1110
---
11+
12+
language: python
13+
-
14+
print(f"$expression: {json.dumps($expression, indent=2)}")
15+
---

0 commit comments

Comments
 (0)