C++ Autocomplete is slow on VSCode for mac development environment

未关闭
#6,199 13 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
cpp, macos, vscode
领域
devtools

调研方向

先在安装了 C/C++ 扩展的 macOS 全新 VS Code 安装中复现该问题,然后将自动补全与列出的 editor.wordBasedSuggestions 和 C_Cpp.autocomplete 设置进行比较。在调查之前先阅读相关 issue 572 和 574。自动 C++ 补全无需 workaround 即可正常工作,并保留颜色和类型提示,即表示完成。

由索引模型根据 Issue 内容生成。

描述

Feature: Auto-complete investigate: repro Language Service performance

Auto complete is not automatically turned on for C++ on VSCode. I have a clean VSCode and this extension installed. I can force auto complete to happen by typing Ctrl+space.

My setting contains this:
"editor.quickSuggestions": true.

I googled it. It turns out that we had several related issues:
https://github.com/microsoft/vscode-cpptools/issues/572
https://github.com/microsoft/vscode-cpptools/issues/574

I followed their way, and it turns out that this solves the problem:
"editor.wordBasedSuggestions": true,
"[c]": {
"editor.wordBasedSuggestions": true
},
"[cpp]": {
"editor.wordBasedSuggestions": true
},
"C_Cpp.autocomplete": "Disabled"

Now auto-complete is on, however, there is no color and type hint on the auto-complete, it is just plain English.

Those two previous issues linked here are from years ago. Is there a plan to solve the problem? Want to open this bug to track this.

主要语言
TypeScript
星标
6.2k
派生
1.7k
平均合并
14 小时 46 分钟
30 天内合并 PR
61

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/vscode-cpptools 的其他 Issue

查看 microsoft/vscode-cpptools 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。