Comment with keybinding (cmd + /)
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
That would be a very valuable feature! It's indeed something I miss from Postman.
Can I contribute to this feature?
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!
I was just looking for this feature. I hope it gets merged in soon!
Or like in VS Code "Ctrl + K + C" to comment ("Ctrl + K + U" to uncomment)
Ctrl + K + U -> capitalizes at the moment Alt Gr + 7 -> puts inside { } alt Gr + 8 -> puts inside [ ]
Is there a reason this is still open? The PR was merged quite a while ago.
yep, it's missing the keybinding for windows & linux users. Ctrl+/
this should close it. Let's see. 🙄
nice catch @LaxmanChoudhary. Can we close this issue after @LaxmanChoudhary 's PR is merged?
I can see that we recently switched to the CodeMirror's built-in command toggleComment which apparently doesn't enable it for json file mode.
There is jsonc, but not sure if CodeMirror supports.
Will check and get back on this.