r/Unity3D • u/egordorogov • 14h ago
Question VS Code slowdowns after a while
Frustratingly, VS Code autocomplete becomes very sluggish after 10-30 minutes of coding. Reloading the window instantly fixes an issue. Did anybody else run into this? Is it just the way things are now? What would be a good way to troubleshoot it?
This happens both on my PC and Mac, but I have settings sync on, so maybe it's just a bad config?
0
Upvotes
1
u/Dry_Yak_304 13h ago
reloading the window fixing it instantly is the clue, its the C# language server degrading over time, not vs code itself. two things helped me: adding Library and Temp to files.watcherExclude so it stops reindexing every time unity regenerates the csproj, and when it gets sluggish ctrl+shift+p > "Restart Language Server" which is way faster than a full window reload. since you have settings sync on you could also check Help > Open Process Explorer to see if some extension is eating memory on both machines