Sublime Forum

Goto anywhere @symbols not working?

#1

hi All,

i’ve just been introduced to ST2 and like everything i’m seeing…

i was trying out the ctrl+p feature, as described in the
index page for sublimetext: partial filename @ symbol …

however, the symbols did not appear …

i was searching a python file … do i need to explicitly set
language syntax before the symbol lookup will work ?

thanks in advance !
sam

0 Likes

#2

I believe the syntax must be set correctly, yes. That is, if you opened the Python file under the Plain Text syntax, you would not be able to use the goto @function feature.

0 Likes

#3

hi Nick,

thanks for confirming …
is there an option to “declare” that the files i’ll be opening
are in eg: python, for a particular [coding] session ?

on the sublimetext.com home page, under “Goto Anything”:

Triggered with Ctrl+P, it is possible to:

Type part of a file name to open it.
Type @ to jump to symbols, # to search within the file, and : to go to a line number.
These shortcuts can be combined, so tp@rf may take you to a function read_file within
a file text_parser.py.

it seems logical to have a preset option ?
thanks again, and in advance again :smile:

0 Likes

#4

If the file is saved as a python file (.py), it should search the symbols without any problems.

0 Likes

#5

Thanks!

i’ll try that out …
yes my files typically do not have the .py extension …

cheers,
sam

0 Likes