Sublime Forum

Go to CSS symbols in .less files?

#1

How can I make goto symbol work in for .less files in ST2?

0 Likes

#2

Anybody?

0 Likes

#3

This is a work around and better than nothing. But it is far from perfect. Any ideas anybody?

0 Likes

#4

what’s the work around?

0 Likes

#5

The thread is incomplete… I think it had something to do with setting the syntax to css instead of less

0 Likes

#6

Look in Packages/CSS/Symbol List.tmPreferences:

<key>name</key> <string>Symbol List: Selector</string> <key>scope</key> <string>source.css meta.selector</string> [size=50](auto extracted so may be nonsensical)[/size]

That’s how they are declared.

0 Likes

#7

So how do you do it?

0 Likes

#8

I would love to know this as well. I might try just copying the Symbol List.tmPreferences file from the CSS directory into the LESS directory and see what happens, but somehow I doubt this will work…

0 Likes

#9

Update: Copying the appropriate files from the CSS directory into the LESS directory doesn’t work, even trying to tweak them to make sure they were loaded for the LESS file type. It just produced a bunch of gobbledygook when I hit CMD+R to browse the symbols.

0 Likes