In Visual Studio 2017, I could just add:
/// <reference path="../core3/core3.js" />
to the top of a .js file and intellisense would know to look there for functions. listing them when I start typing “$.”, and listing their parameters when I selected one. F12 would also redirect to the function in another file.
I recently got a new computer and installed Visual Studio Pro 2022. I cannot get intellisense to work in 2022 for JS files. It works for C#. If the JS function is local in that file, it will get the function name, but not its parameters. F12 will redirect to it.
If the function is in a reference path js file, it will get nothing. F12 does not work.
Pressing crtl + shift + space just flashes a “Loading…” for less than 1 second.
I remember having this problem with VS 2019 too, so I just uninstalled it and went back to 2017, that’s not an option now as Mainstream support for Visual Studio 2017 ended on April 12, 2022.
I do get partial results with cryptic errors: “IntelliSense is unable to determine the accuracy of this completion item.”
IntelliSense is unable to determine the accuracy of this completion item.
JSDoc comments ahead of functions are ignored and not displayed /** @description, @param, @return */
I’ve tried:
Making sure [Auto List members] and [Parameter Information] are checked in Tools -> Options -> Text Editor -> All Languages -> General.
added scripts_references.js file to project
deleted the .vs folder in the solution and let it rebuild
installed all sorts of different features in VS i don’t need.
deleted the C:Users[user]AppDataLocalMicrosoftTypeScript folder and let it rebuild
cursing
using a solution created in VS2017
creating a new solution in VS2022 – ASP.NET empty web site, then copy in code from previous solution.
updated VS2022 to the latest version
restarting computer
Any ideas on how to enable the most basic of visual studio features in 2022?