Bootstrap Intellisense Missing Visual Studio 2015

I installed Visual Studio 2015 this week. However, I found that I have no intelligence in my Razor views.

In Visual Studio 2013, it worked fine.

My all my css files are under ~/Content/css/ ( *.min.css ), including the download.

Here is the bundle configuration:

 bundles.Add(new StyleBundle("~/Content/smartadmin").IncludeDirectory("~/Content/css", "*.min.css")); 

When I try to use some bootstrap css in my razor mode, nothing appears in the autocomplete field. There should be a purple icon next to the elementary grades. There are no css icons and classes that are available in the bootstrap package.

I checked the health check and created a new MVC 5 application. This comes with a bootstrap. It works, all intellisense is.

How to fix this problem? Perhaps this is a problem with my solution? Doesn't it look like the css files are under a subfolder under the content?

UPDATE: So, I copied in uninitiated versions of files, then they picked it up. So, does anyone know the reason VS is not collecting mini files for intellisense?

+6
source share
7 answers

It seems like the solution is to add non-minified files to your solution to work with intellisense. I think this is because Microsoft is breaking the minifier into a separate extension.

+6
source

If your project type is an ASP.NET web application and you use the "home page", it is easy to fix this to add a link to the css file on the main page. For example, in the "head" section of the main page, I add:

 <link rel="stylesheet" href="Content/bootstrap.css" type="text/css" /> 
+5
source

ASPX and other WebForm files that use the legacy editor do not use this implementation in VS 2013, but may adopt the new system in future releases.

But you can still use this function as follows:

right-click the default.aspx file in open with solution open with select HTML Editor ok

+3
source

If someone comes here and the decision is not working.

In my case, I had to remove the database project (.sqlproj) from the solution for the Bootstrap class css intellisense to work.

Delete the database project and restart Visual Studio.

And to be understood. This is not a good solution, since deleting a database project is not what you want. So, I hope someone finds a good solution to this strange error.

+3
source

In my case, intellisense is not worrk, because the path to the boot files has been changed, then the files are not included in the project.

After adding files to the project, it works fine.

I know ... This is a simple solution. Excuse me!

enter image description here

+2
source

What worked for me: link to full css download, close view (s), rebuild solution, open view. Intellisense worked. Go to mini css, close the view, rebuild, open the view. Intellisense is still working.

0
source

I worked to ensure that all actual scenarios were in place and in order.

 <script src="Scripts/jquery-3.2.1.js"></script> <script src="Scripts/bootstrap.js"></script> <script src="Scripts/angular.js"></script> <link href="Content/bootstrap-theme.css" rel="stylesheet" /> <link href="Content/bootstrap.css" rel="stylesheet" /> 

After that I closed the solution for the visual studio and reopened it. Intelli-sense began to work after loading.

0
source

All Articles