How to open a block of comments on PgAdmin query editor?

25.7k Views Asked by At

There are 2 ways to mark comment in pgAdmin - PostgreSQL: the

  1. -- bla bla

and the:

  1. /* 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.

5

There are 5 best solutions below

0
On

I use pgadmin 4 (4.28) and ctrl+/ comments the lines and ctrl+shift+/ uncomments the lines

1
On

Apple Mac ()

  • Comment: ⌘ Cmd + /
  • Uncomment: ⌘ Cmd + .
0
On

Windows
pgAdmin 4:
'/' on the keyboard's letter side worked for me not on the number side!

2
On

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)

0
On

On Ubuntu GNU/LInux (PgAdmin4), select a block of code with the mouse cursor.

Comment

  • Ctrl + }

UNcomment

  • Ctrl + Shift + }