Google Apps Scripts "Folding Code" how does it work?
19:02 04 Jan 2026

I just recently found out that you can fold code in the Google Apps window. However, I'm wondering if anybody knows how it works.

On the images I've posted some "functions" have a folding caret and others don't. Can someone point to the reason? If it's a formatting issue I'm fine with that I just need to be made aware of what that is.

This image has the folding caret.

enter image description here

This image on same script does not.

enter image description here

google-apps-script code-folding