What's a quick way to comment/uncomment lines in Navicat query editor?
Asked Answered
F

3

5

In Navicat, how do I enclose a selection in a comment?

Is there a keyboard shortcut for this action?

Feeder answered 23/10, 2012 at 6:51 Comment(0)
E
13

Ctrl + / - To comment a block of code

Ctrl + Shift + / - To uncomment a block of code

Efferent answered 25/10, 2012 at 13:23 Comment(4)
This doesn't work on Mac OS (Yosemite 10.10.5). I also tried Cmd + / and Cmd + Shift + / but to no avail. Comment and Uncomment exist in the Format menu but have no shortcut shown. Maybe there's a way to add one?Necrophobia
Mac You just hit Cmd + / to comment and uncomment But it can get pretty weird sometimes because Mac.Inconsiderate
Is there any way to change the keys? Because in windows it didn't work :(Cottony
For me on windows ctrl + / to comment. Just highlight the commented area and do it again to uncommentJiggermast
F
3

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.

Fabrienne answered 11/10, 2016 at 13:55 Comment(0)
T
3

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.

Thompson answered 1/9, 2017 at 6:39 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.