microsoft / microsoft/vscode-cpptools

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

Open
#6,199 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature: Auto-complete investigate: repro Language Service performance
Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in a clean VS Code installation on macOS with the C/C++ extension, then compare automatic completion with the listed editor.wordBasedSuggestions and C_Cpp.autocomplete settings. Read the related issues 572 and 574 before investigating. Done means automatic C++ completion works without the workaround and retains color and type hints.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, macos, vscode
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.