View the original community article here
Last Tested: Jan 21, 2019
LookML can be folded with the little arrows next to the row number of a specific dimension or measure. It can also be done via the settings of the LookML file. The following link has detailed instructions on how to use folding.
https://docs.looker.com/data-modeling/getting-started/lookml-validation#folding
Only bracketed LookML blocks will be collapsible by default, but it is possible to make any block of code collapsible by using brackets inside comments, as described here. Example:
# my long list of dimensions {
dimension: user_id {
description: "Unique ID for each user that has ordered"
# ... (lots more LookML) ...
sql: ${TABLE}.most_recent_purchase_at ;;
}
# } / my long list of dimensions
This content is subject to limited support.