Click here to Skip to main content
14,836,552 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to get intellisense with @extend in a scss file. This works in jetbrains rider but doesn't work in Visual Studio 2019 or VS Code. I am not using third party gulp, grunt or webpack plugins. Just sass compiler extension and web compiler in visual studio 2019. I don't get intellisense but the file compiles fine and works if I add a bootstrap class after extend. I need intellisense though. Intellisense does work for other sass directives like variables but jsut not @extend. Here is an example
@import"../lib/bootstrap/css/bootstrap.css";
     @import"../lib/bootstrap/css/_bootstrap.css";
     @import"../lib/bootstrap/css/bootstrap";

.test{
    @extend ."no intellisene here for bootstrap classes"
}


Like i said this works as expected in jetbrains rider but not in vs code or studio. I am wondering if i need to run gulp or grunt with dart-sass plugin or something else.

What I have tried:

I have tried <reference path="../lib/bootstrap/css/bootstrap.css";.
Without and with the ~ for wwwroot. I have tried alot of things and am wondering if i need to install dart sass using gulp or something. Any help is appreciated. Thanks
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900