What's a quick way to comment/uncomment lines in Navicat query editor?
-
13-07-2021 - |
Question
In Navicat, how do I enclose a selection in a comment?
Is there a keyboard shortcut for this action?
Solution
Ctrl + /
- To comment a block of code
Ctrl + Shift + /
- To uncomment a block of code
OTHER TIPS
Place -- in front of the line.
Or if you want to comment a block place /* at the beginning and */ at the end of the block.
Navicat For Mysql shortcut keys:
Ctrl+Q - open a query window.
Ctrl+/ - notes or comment in the SQL statement.
Ctrl+Shift+/ - release notes or uncomment the Query.
Ctrl+R - run all query the SQL statement window.
Ctrl+Shift+R - run the SQL selected statement only.
Ctrl+N - open a new query window.
Ctrl+W - close current query window.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow