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 + .
Share:
16,242

Related videos on Youtube

John
Author by

John

Programer and love it. My favorite joke: “Knock, knock.” “Who’s there?” very long pause…. “Java.”

Updated on September 16, 2022

Comments

  • John
    John over 1 year

    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.

  • mountainclimber11
    mountainclimber11 about 7 years
    version 1.3, this does not work for me and I cannot ctrl + s to save either.
  • akthor
    akthor about 4 years
    I'm using pgadmin4 (4.19) and ctrl + / works to comment and ctrl + shift + / uncomments the lines.