sqlsnowflake-cloud-data-platform

Collapsible code blocks in Snowflake - How?


I have seen folks post in Reddit about the new (1 year old now) functionality of collapsing code blocks in Snowflake.. Unfortunately no one has explained how to do this to the novice user. Can someone please help with this?

this is what my worksheet looks likeenter image description here


Solution

  • Please note it is only available in Snowsight.

    Note:

    If you are using single line code, you would not see the collapsible option

    enter image description here

    You need to use multi-line code and hover on the left side to see the collapsible option.

    "hover" or "mouseover" refers to the action of moving the mouse cursor over a specific area on the screen, such as a link, button, or image, without clicking

    enter image description here