Sublime Forum

Getting Goto Symbol working

#1

I’m working on my own language file, but can’t bet Goto Symbol to work. The scope seems right–if I do ctrl-alt-P on a function I see “entity.name.function.XXX meta.function.XXX source.XXX”. But Goto Symbol always says, “No Symbols”. Is there something more that’s needed to trigger it?

0 Likes

#2

You need to have **Symbol List.tmPreferences **file that defines the symbols… the same goes if you want to use the “Toggle comment” commands on your custom language you need a **Comments.tmPreferences **if not the command won’t work… Here is the HTML for example, as you can see it only shows IDs as symbols…

[code]<?xml version="1.0" encoding="UTF-8"?>

name Symbol List: ID scope text.html meta.toc-list.id.html settings symbolTransformation s/^/ID: / uuid E7C5859E-122D-4382-84BE-5AB584DC2409 [/code]
0 Likes