Sublime Forum

Code folding inconsistent


Love ST, but have always found code folding (Python) inconsistent and/or hard to use… It appears to matter where my cursor is when applying a fold to a given level (ie fold level 2). Why is that? Intuitively, if I press ctrl K+2, it should fold to that level, but sometimes it folds a class (level 1, or part of a class method, or nothing at all) when I expect it to basically fold the class methods…

Am I doing something wrong? Folding code makes it so much easier to read and navigate, but it’s so difficult to get it to fold how I want…

Using ST3 v3.2.2 build 3211