Is it possible to quick look definition of SCSS class not CSS class?

File Watchers is awesome feature but I think I'm missing one important part of my ideal workflow.
Refactoring initiated from HTML file works for SCSS files but quick Definition (Alt+Space) does not.

Is it possible to quick look definition of SCSS class instead of CSS class from generated file from sass?

If it's not possible then what is the fastest way to jump to scss definition?

I'm using phpStorm (7) EAP 131.332.

4 comments

Hi there,

Is it possible to quick look definition of SCSS class instead of CSS class from generated file from sass?

http://youtrack.jetbrains.com/issue/WEB-6737

If it's not possible then what is the fastest way to jump to scss definition?

My only idea would be to try "Navigate | Symbol" and type class name there while selecting SCSS context only (have not tried myself so cannot tell how convenient it is, i.e. will it remember context on next invocation or not)

0

Unfortunately Navigate > Symbol doesn't even list classes from scss file despite scss is selected in filter list.

0

I do not have any SCSS so cannot check myself, but it does work for LESS files.

If it does not for SCSS -- feel free to file new bug report ticket (but check for existing one first)

P.S.
Accordingly to this ticket is has been implemented around a year ago: http://youtrack.jetbrains.com/issue/WEB-5899 ; http://youtrack.jetbrains.com/issue/WEB-5834

0

It turn out that Navigate > Symbol is working as expected. I just didn't saw it. Don't know why but I was expecting that icon will be red just as SCSS file's icon.

I also found that when id or class is selected activating Navigate > Symbol (alt + command + O) automatically fills itself with selection. Selecting class with alt + up arrow (for selecting closest word to cursor) brings us to usable but temporary work around.

Since it's just work around and I'm anxiously waiting for straight support just with Quick Definition (alt + space).

0

Please sign in to leave a comment.