Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellisense for bootstrap css classes in visual studio code

I want intelissense for bootstrap classes in visual studio code. I tried every soulution given on this platform but didnt succeed. is this feature deleted from visual studio code.

I tried following things :

Html css support plugin

Intellisense for html css in visual studio code

None of them worked.

I tried editing settings files also, wit these :

**{ "css.fileExtensions": [ "css", "scss", "less" ],

"editor.quickSuggestions": {
    "other": true,
    "comments": true,
    "strings": true
},**

but no luck.

Any help would be highly appreciated. Thanks

PS :I am using visual studio code 1.21.0

like image 707
Shantanu Jha Avatar asked Feb 18 '26 02:02

Shantanu Jha


1 Answers

IntelliSense for CSS class names in HTML was right choice. The extension scans through your current workspace to find all css clasess you have in the workspace.

If any of the project inside your workspace has bootstrap.css file then the extension will take all bootstrap classes.

If you don't have Bootstrap in the workspace You can install it locally like

npm i bootstrap
like image 92
Denis Irkhin Avatar answered Feb 20 '26 20:02

Denis Irkhin