Open nnrohu opened 2 years ago
Stringify JSON log(2)
Any chance to make this ?
´´´ { "key": "cmd+shift+l", "command": "editor.action.insertSnippet", "when": "editorTextFocus", "args": { "snippet": "console.log(${TM_SELECTED_TEXT}$1)$0;" } }, { "key": "cmd+shift+j", "command": "editor.action.insertSnippet", "when": "editorTextFocus", "args": { "snippet": "JSON.stringify(${TM_SELECTED_TEXT}$1, null, 2)$0" } }´´´
There should be an option to create a log code for this.
JSON.stringify(jsonData, null, 2)