Sublime Forum

Better work goto symbol in html / php files

#1

Instead of screen above, I should except that the list will be:

CLASS: test
ID: test
CLASS: element-with-class
CLASS: element-with-id
0 Likes

#2

have you (or a plugin) changed the selectors used for Goto Symbol in HTML? By default, class attributes are not indexed.

0 Likes

#3

@noreffer Did you ever find a solution for this?

This is what a typical Goto Symbol list looks like for me when I have a .php file with mixed HTML/PHP:

The first and last items are function names, the rest are HTML elements with css classes… No class name mentioned…

I think I’d prefer to just not see them at all.

0 Likes

#4

so uninstall whatever package is doing it…

0 Likes

#5

Thanks kingkeith,

After a process of elimination I found that the Sass https://packagecontrol.io/packages/Sass package was the culprit. I’ve filed an issue on their github.

0 Likes