Sublime Forum

PHP Code fold when opening file

#1

Hi!

I really like the code folding feature in Sublime, anyone knows if it is possible to automatic code fold my php files when opening them?

Thx!

0 Likes

#2

A first attempt is

def on_load(self, view): if view.match_selector(0 ,"source.php"): view.run_command("fold_by_level", {"level": 1})

0 Likes