Python Forum

Full Version: Code folding in Sublime Text
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Sublime Text automatically adds a fold/unfold block when detecting commands like:
if
while
def
try

I´d like to override this behaviour and define my own set of characters for folding/unfolding.
Exactly, I want #+ to indicate the beginning of a folding block and #- to indicate the end.

Is there a (not to complicated) way of achieving this in this editor?

Many thanks.
You may get an answer on this forum, but probably quicker here: https://forum.sublimetext.com/
Many thanks.
Apparently it is not possible.
https://forum.sublimetext.com/t/code-fol...xt/56553/3