Home Download Buy Blog Forum Support

Code Collapse hotkeys don't always work

Code Collapse hotkeys don't always work

Postby dillydadally on Fri Jan 25, 2013 3:09 am

I use a lot of custom code collapsing in my files where I'll have a comment and then indent a line and then a bunch of functions, kind of like this:

Code: Select all
// GRID FUNCTIONS
        function loadGrid()
        {
              ....
        }
        function deleteGrid()
        {
              ....
        }


This is my favorite feature of sublime text - how I can make custom code collapse groups under my comments just by indenting a level. In fact, I use this feature so much I changed the keyboard shortcut to just Ctrl+1 instead of Ctrl+k,Ctrl+1.

However, I've been very frustrated because when I push my keyboard shortcut, it doesn't always work. It seems to be dependent on where the my cursor is at the time. If I'm in the middle of a function and press Ctrl+1, it sometimes doesn't work and sometimes it does. However, if I'm at the top or bottom of my code and press Ctrl+1, it always works.

What's going on here? Is this a bug?
dillydadally
 
Posts: 1
Joined: Fri Jan 25, 2013 2:50 am

Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 18 guests