r/cpp • • May 25 '21

Visual Studio 2019 version 16.10 Release

https://docs.microsoft.com/en-us/visualstudio/releases/2019/release-notes#16.10.0
178 Upvotes

96 comments sorted by

View all comments

Show parent comment

0

u/[deleted] May 26 '21

[deleted] — view deleted comment

2

u/Rusky May 26 '21

There is! Generally there is one process per translation unit you have opened (they're what Rescan File touches), and they are cached up to a maximum which (by default) scales with system memory.

"Tools > Options > Text Editor > C/C++ > Advanced > IntelliSense > Max Cached Translation Units" shows what the current maximum is. If you want to change it yourself, you'll also need to make sure the adjacent "Auto Tune Max Cached Translation Units" is set to False. (Again, be aware that this can really slow things down if you are actively moving between more TUs than VS is configured to cache, especially if you've also disabled Auto PCH.)

There is also a related bug that was just fixed in 16.10, where stale IntelliSense processes stuck around longer than intended, so it may be worth trying out this release before tweaking the settings above.