vscode-json icon indicating copy to clipboard operation
vscode-json copied to clipboard

Cannot apply JSON operations (e.g. pretty formatting) to unsaved editor

Open jhardin-accumula opened this issue 4 years ago • 1 comments

I'm often dealing with minimized JSON and XML embedded in log files. To ease reading I will copy the block of JSON or XML to a new document in an editor and use the editor's tools (potentially via a plugin) to reformat the content so it's easier to read (and potentially to take advantage of context collapsing if the editor offers that for structured content).

It seems I'm unable to do that in VSCode when using this plugin. I create a new editor window, paste a bunch of JSON into it, and click the JSON icon in the left sidebar, and get a "Please open the JSON file" notice rather than JSON options.

Please allow the extension to work with an unsaved editor tab that contains JSON.

Thanks!

jhardin-accumula avatar Apr 06 '21 18:04 jhardin-accumula

I reccommend this extension for now until they figure this out https://github.com/mohsen1/vscode-prettify-json

bandlerr avatar Apr 27 '21 16:04 bandlerr