Reputation: 3362
Is there a shortcut for multi line commenting out? A.k.a. commenting blocks of SQL at a time via a shortcut or menu option?
Upvotes: 1
Views: 21859
Reputation: 37
I don't think there's something like multi-line comment in snowflake. Even on the community page: page there's just the shortcut for a single line comment while having the whole thing highlighted, which is:
Press CMD + / (Mac) or CTRL + / (Windows) again. The comments are removed from the highlighted lines.
Upvotes: 1
Reputation: 2612
You have to highlight the rows you want to comment out and then press Cmd (Mac) or Crtl (Windows) + /
See here: https://docs.snowflake.com/en/user-guide/ui-worksheet.html
Upvotes: 3