usebruno / bruno

Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
https://www.usebruno.com/
MIT License
22.12k stars 1.04k forks source link

Comment with keybinding (cmd + /) #1451

Open gabrielbidula opened 5 months ago

gabrielbidula commented 5 months ago

In a JSON payload interface, similar to other API GUIs, it would be beneficial to support code commenting within the payload. This feature should enable users to exclude specific parts of the request through comments. Additionally, implementing a keyboard shortcut for commenting, such as 'Cmd + /' on macOS, would enhance usability. This shortcut should facilitate both single-line and multi-line comments, allowing users to comment out a line, move to the next line, and repeat the process as desired. I haven't found any open pull requests addressing this, so I'm providing this suggestion. Thank you for your efforts in developing the application.

Cheers

Drowze commented 2 months ago

That would be a very valuable feature! It's indeed something I miss from Postman.

samhoooo commented 4 days ago

Can I contribute to this feature?

samhoooo commented 3 days ago

Hi @sanjai0py, I implemented this feature in PR https://github.com/usebruno/bruno/pull/2634

I am a begineer and would like to get some suggestions. Thank you!

etler commented 2 days ago

I was just looking for this feature. I hope it gets merged in soon!