JavaScript Intellisense in VS2010 extremely slow a

2019-04-26 07:27发布

问题:

I'm having 2 problems with the Intellisense in VS2010. Our project is very large, it consists of a couple hundred .js files comprising a couple hundred thousand lines of code. After using VS2010 for as little as 5-10 minutes the memory usage can easily climb to over 1gb, which causes a significant slow down, and every time I CTRL+TAB between files "Updating JavaScript Intellisense" appears in the status bar. All of our .js files have tags so Intellisense knows where to find related code, each .js can easily reference 20-30 other .js files.

So I'm assuming every time you CTRL+TAB or open a new .js file the Intellisense gets rebuilt, and to me it looks like it rebuilds Intellisense every time you CTRL+TAB regardless of whether you made any changes or now, and it never appears to release any memory, the memory usage never goes down.

I've tried every solution I've found online, even some that seemed stupid because I'm getting desperate, I even installed VS2010 SP1 Beta today hoping Microsoft had fixed it - no.

Closing TABS doesn't help either, the memory usage remains high. My current solution is to restart VS2010 every 30-60 minutes and try keep a minimum number of files open.

Any ideas?

回答1:

Although I've faced same issue, this situation has not been after resolving circular reference and typo of comment for JS intellisense.



回答2:

Do you have re-sharper installed in VS ?? Uninstalling re-sharper may help you to get ride of this.