Enable JQuery Intellisense on Visual Studio 2022 ASP.NET Core 6

Viewed 557

I have started a new asp.net core 6 (mvc) project on Visual Studio 2022 and added jquery to wwwroot/jquery folder. when typing jquery functions intellisense isn't working. I've tried adding a reference path like on old visual studio versions and it didn't work.

https://i.stack.imgur.com/2WNN0.png

then tried adding a jsconfig.json file like recommended on some posts that I've found but that also didn't work probably since I'm working offline and it supposed to fetch something from the internet. can anyone help?

1 Answers

I had a very similar problem. In a project created by a coworker, jQuery Intellisense was not working for me. After weeks of server-side development in the project, I started a front-end development task and found that I had no jQuery Intellisense. All I had to do to revive jQuery Intellisense was to close the solution, delete the .vs folder (hidden) for the solution, then reopen the solution.

Note: Doing this erases your personal "settings" for the solution; for example, which files you had open (tabs), your project-tab color settings, etc.

See step 2 here for the source of this resolution: https://stackoverflow.com/a/61475198/1766253

Related