Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shortcut to comment/uncomment code in the editor #654

Open
Krafpy opened this issue Aug 29, 2023 · 0 comments
Open

Shortcut to comment/uncomment code in the editor #654

Krafpy opened this issue Aug 29, 2023 · 0 comments

Comments

@Krafpy
Copy link

Krafpy commented Aug 29, 2023

It doesn't look like there is any keyboard shortcut for commenting/uncommenting a line or block of code in the OverpassQL editor. Most IDEs use Ctrl-/ (or Cmd-/) to comment/uncomment parts of code. CodeMirror has a comment addon comment/comment.js (see https://codemirror.net/5/doc/manual.html#addons) which adds a toggleComment method to the CodeMirror instance.

I think this feature would be quite useful when learning/experimenting with the API and the language. I tried adding that feature myself on a local instance but it seems that the nodejs package used for CodeMirror doesn't implement any of the addons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant