How to open a block of comments on PgAdmin query editor?
16,242
Solution 1
Ctrl k will comment out a block of code, while Ctrl-Shift k will uncomment out the block.
Ctrl k --> Comment, Ctrl K --> Uncomment (capitalize k)
Solution 2
I use pgadmin 4 (4.28) and ctrl+/
comments the lines and ctrl+shift+/
uncomments the lines
Solution 3
Apple Mac (🍏)
- Comment: ⌘ Cmd + /
- Uncomment: ⌘ Cmd + .
Related videos on Youtube
Author by
John
Programer and love it. My favorite joke: “Knock, knock.” “Who’s there?” very long pause…. “Java.”
Updated on September 16, 2022Comments
-
John over 1 year
There are 2 ways to mark comment in pgAdmin - PostgreSQL: the
-- bla bla
and the:
/* bla bla bla bla*/
for the first one i use ctrl+k as short hot key. is there a hot key for the 2nd one? i know ctrl+k can be applied on muliple lines if i mark them but it will add -- for all lines which isn't what I'm looking for.
-
mountainclimber11 about 7 yearsversion 1.3, this does not work for me and I cannot ctrl + s to save either.
-
akthor about 4 yearsI'm using pgadmin4 (4.19) and
ctrl + /
works to comment andctrl + shift + /
uncomments the lines.