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!
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!
A first attempt is
def on_load(self, view):
if view.match_selector(0 ,"source.php"):
view.run_command("fold_by_level", {"level": 1})