Search code examples
cssnavigationsassphpstorm

Navigate to SASS class instead of CSS from HTML in PhpStorm?


Is there any way to make JetBrains PhpStortm (v8) to navigate to the SASS file when I Ctrl+cilck on a CSS class/id in the HTML source, insted of the default (to the CSS file class/id) setting? It would be great, and I cant find a soloution. Thanks in advance!


Solution

  • I found a half-solution! If I link the scss file in the head, then I can select the SASS declaration. Yay! :D

    <link href="/css/sass/main.scss">
    

    Thats work for me.