postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.81k stars 839 forks source link

Keyboard shortcut for "Beautify JSON" #11513

Open nevumx opened 1 year ago

nevumx commented 1 year ago

Is there an existing request for this feature?

Is your feature request related to a problem?

The issue is that I use postman quite a bit purely as a JSON formatter/beautifier, and every time I paste a new json into the "raw" radio button of the "body" request tab, I have to use my mouse to click the "beautify" button, instead of having a keyboard shortcut for that.

Describe the solution you'd like

Optimally, I would like a full-featured keyboard shortcut editor such as those seen in Visual Studio and the like, but I would settle for a more basic editor, or even just a documented hard-coded keyboard shortcut for the aforementioned "beautify" button.

Describe alternatives you've considered

No response

Additional context

No response

DannyDainton commented 1 year ago

Hey @nevumx

Doesn't CMD+B not do this for you in the request body?

salehsami commented 6 months ago

@DannyDainton No, it is not doing anything on response, My response is in json pretty format but I want it to be in beautify format as we can do with request

alaz-aura commented 4 months ago

@salehsami - the beautify shortcut works for the request body.

in postman, if you're response body is unformatted: 1, copy+paste into another editor (e.g VS code)

  1. run your beautify function/shortcut there