Home Download Buy Blog Forum Support

C/C++ symbols not appearing in Goto Anything @

C/C++ symbols not appearing in Goto Anything @

Postby benhoyt on Sat Jan 29, 2011 9:56 pm

I just started using Sublime Text (2), and it's great, especially Ctrl+P -- Goto Anything.

The goto symbol (@) seems to work well for Python, but no symbols show up for C or C++. For instance, with this C file -- http://code.google.com/p/inih/source/browse/trunk/ini.c -- loaded, if I press Ctrl+P then @, nothing shows up. Word match (#) works fine, but @ shows nothing for C/C++.

Is this a bug with the regexes in the C/C++ packages, or something I'm doing wrong?


Also, the symbol matcher in Python picks up new-style or inherited classes fine, but not bare old-style classes like:

Code: Select all
class Editor:   # Edit symbol won't be picked up
    def save():    # save will, however

class NewEditor(object):   # But this will be picked up

If I replace "meta.class.old-style.python" in the Python.tmLanguage file with just "meta.class.python", then it works. Is this a bug or a feature?

Posts: 8
Joined: Sat Jan 29, 2011 9:34 pm

Re: C/C++ symbols not appearing in Goto Anything @

Postby jps on Sat Feb 05, 2011 7:43 am

Both these issues will be addressed in the next version
Site Admin
Posts: 3158
Joined: Wed Mar 19, 2008 12:33 pm

Re: C/C++ symbols not appearing in Goto Anything @

Postby Mr-Homer on Mon Jul 08, 2013 4:55 pm

I know this is an old topic (very old), but it seems it's still relevant-- for ST3. ctrl-p then @ will still not produce any symbols other than function names and defines for c/c++ code.

Will C/C++ vars be included in ST3 goto anything? Or-- am I doing something wrong? :)

Posts: 16
Joined: Tue Jun 04, 2013 8:12 pm

Return to Technical Support

Who is online

Users browsing this forum: smashayekh and 29 guests