Chakroun-Anas / turbo-console-log

591 stars 141 forks source link

Stringify JSON log #173

Open nnrohu opened 2 years ago

nnrohu commented 2 years ago

There should be an option to create a log code for this.

JSON.stringify(jsonData, null, 2)

chanphiromsok commented 1 year ago

Stringify JSON log(2)

rodrigodiasf1984 commented 1 year ago

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" } }´´´