Windows10下VS Code JavaScript Intellisense卡顿问题求助
React项目Win10环境VS Code Intellisense卡顿修复方案
重置JS/TS语言服务配置
删除项目根目录.vscode文件夹(建议先备份),重启VS Code让其生成默认配置;也可在用户设置中添加以下配置降低服务负载:"javascript.implicitProjectConfig.checkJs": false, "typescript.suggest.completeFunctionCalls": true, "javascript.suggest.completeFunctionCalls": true清理VS Code缓存
打开命令面板(Ctrl+Shift+P)执行Developer: Reload Window;若无效,手动删除Win10下VS Code缓存目录:%APPDATA%\Code\Cache和%APPDATA%\Code\CachedData,重启编辑器。统一Node.js版本与依赖
用node -v确认Win10与Win11的Node版本一致,不一致则安装对应版本;删除项目node_modules、package-lock.json文件,重新执行npm install。增加语言服务内存配额
在VS Code设置中添加以下配置,提升TS/JS服务的内存上限:"typescript.tsserver.maxTsServerMemory": 8192, "javascript.tsserver.maxTsServerMemory": 8192排除冗余扫描目录
在项目.vscode/settings.json中添加排除规则,减少语言服务扫描范围:"files.exclude": { "**/node_modules": true, "**/.git": true, "**/dist": true, "**/build": true }, "search.exclude": { "**/node_modules": true, "**/.git": true, "**/dist": true, "**/build": true }重装/更新VS Code
卸载Win10上的VS Code,删除%APPDATA%\Code和%USERPROFILE%\.vscode残留文件,重新安装最新稳定版,同步扩展后重试。
内容的提问来源于stack exchange,提问作者AAV
相关产品推荐
相关产品推荐

