microsoft / microsoft/vscode-cpptools

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

Offen
#6,199 13 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Feature: Auto-complete investigate: repro Language Service performance
Vorherrschende Sprache
TypeScript
Sterne
6.2k
Forks
1.7k
Ø Merge
14 Std. 46 Min.
Gemergte PRs (30 T.)
61

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit, das Problem in einer sauberen VS-Code-Installation unter macOS mit der C/C++-Erweiterung zu reproduzieren, und vergleiche anschließend die automatische Vervollständigung mit den aufgeführten Einstellungen editor.wordBasedSuggestions und C_Cpp.autocomplete. Lies vor der Untersuchung die zugehörigen Issues 572 und 574. Als abgeschlossen gilt die Aufgabe, wenn die automatische C++-Vervollständigung ohne den Workaround funktioniert und Farb- sowie Typhinweise beibehält.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
cpp, macos, vscode
Bereich
devtools
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.