VS2022 Bootstrap 5 No intellisense for asp.net core MVC project

Copper Contributor

Hello,

 

I just downloaded VS2022 and created an asp.net core web app MVC project.  First thing I noticed was it uses bootstrap 5, but does not have intellisense.

 

Nothing special going on.

1. Create new project

2. Select asp.net Core Web App (Model-View-Controller)

3. Edit one of the provided .cshtml files

4. Check for intellisense, i.e.   <div class="text-success">

 

Any suggestions?

2 Replies
Hi
There is a workaround: copy the bootstrap CSS file into wwwroot.
Best regards

Step 1:- Visual Studio 2022 IDE --> Tools -> Options

Mandavas_2-1705867241595.png

 

Step 2:- HTML --> Advanced --> Use legacy Razor editor for ASP.NET Core set as True

 

Mandavas_0-1705867088707.png

 

Step 3:- Restart Visual Studio 2022