alexandrehtrb / Pororoca

An API testing tool with support for HTTP/2 and HTTP/3. Alternative to Postman.
https://pororoca.io
Other
500 stars 38 forks source link

Keyboard shortcut for request body formatting #59

Closed alexandrehtrb closed 10 months ago

alexandrehtrb commented 11 months ago

When the request body editor is focused, if the user presses Shift+Alt+F, the content should be formatted. This should work for WebSocket client message raw content too.

Support only for XML and JSON.

alexandrehtrb commented 10 months ago

Closing this, can be reopened in the future. Traditional JSON prettification doesn't work here because Pororoca variable templates break JSON format and a more complex solution is needed; example below should be able to be prettified:

{
  "id": {{MyId}}
}