Sublime Forum

Goto definition in S3 with SASS?

#1

Hi there,

Is there any way to make goto definition work with sass? whenever I select a class inside my html and I go to the definition it will only show me .css files but no .scss files. Thanks!

1 Like

Goto definition for SCSS in S3?
#2

I had some luck with the instructions given here: github.com/P233/Syntax-highligh … /issues/15

Which just involves adding the following to the SASS Symbol list file:

<key>showInIndexedSymbolList</key> <integer>1</integer> <key>symbolIndexTransformation</key> <string>/#.]([A-Za-z0-9_~]+)/$1/;</string>

The problem is that you can’t disable the indexing for CSS, which makes things very confusing.

0 Likes

#3

Scss and sass files started to appear in “Goto definition” -results after installing LESS-package. (I wish I’ve known this 3 hours ago but I hope this helps someone to save their time)

0 Likes