Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text: show current outer element name

Having a long routines, one gets sometimes lost and it would be handy to know which class/function the cursor is currently in (without the need to scroll all the way up, looking for the first outer block declaration). Any ideas how to get this in Sublime Text 3?

I'm mostly interested in a solution for Python, but I suppose there should be some general way (plugin?) to have this. I can imagine having the name written in the status bar, for example.

like image 637
knaperek Avatar asked Jun 17 '14 18:06

knaperek


1 Answers

If you press accel-r, or type @ inside the Quick-open files by name command palette(accel-p), you can see the current method/routine name highlighted. All this is in the default key binding of course.

Edit: after looking around, I found Function Name Display which does exactly what you want. It shows the current function name in the status bar.

like image 111
XrXr Avatar answered Nov 18 '22 10:11

XrXr