Sublime Forum

Css code folding

#1

Since some update, indentation based code folding, was flushed down the drain.

This totally ruined most of my css files display.

My question: Is there, or will there be, a way to enable indentation based code folding for selected filetypes? (In my case css)

0 Likes

#2

There’s an open PR to re-enable indentation based code folding for CSS at https://github.com/sublimehq/Packages/pull/3601

To fix the issue for ST4143 stable build:

  1. Main Menu > Preferences > Browse Packages…
  2. Look for or create CSS folder
  3. Paste the Fold.tmPreferences from linked PR.

ST 4144+ introduces a setting to globally choose code folding strategy (auto/indent/syntax).

0 Likes