dotnet/roslyn

Improve XML comment autocomplete trigger

Offen

#52.487 geöffnet am 08.04.2021

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)C# (4.257 Forks)batch import
Area-IDEBugDeveloper CommunityIDE-IntelliSenseIntelliSense-Completionhelp wanted

Repository-Metriken

Stars
 (20.414 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 6T 17h) (256 gemergte PRs in 30 T)

Beschreibung

This issue has been moved from a ticket on Developer Community.


XML comments have extremely aggressive autocomplete that make them difficult to write. I accidentally autocomplete <see langword="abstract"/> every few minutes without ever typing the < symbol.

Steps: Type 'a', 't', 'backspace'. (The backspace will erase the 't' character, leaving the caret to the right of the 'a'). This results in a super aggressive autocomplete suggestion, which will paste in the suggested text if I hit 'space'. For some reason, the backspace character is triggering the autocomplete window.

Suggestion: Only trigger the XML comment autocomplete markup when I open with the < symbol. It seems safer to assume that the user is intending to use one of these comment macros after they've started the trigger character. The current method is really prone to failure when you're typing quickly.

VS 2019, 16.8.6.

! [image.png] (https://aka.ms/dc/image?name=B15e0e3f3a66140488a29a66cdfdfc931637505802061820758_20210305-143004-image.png&tid=15e0e3f3a66140488a29a66cdfdfc931637505802061820758)


Original Comments

Feedback Bot on 3/8/2021, 00:28 AM:

Thank you for taking the time to provide your suggestion. We will do some preliminary checks to make sure we can proceed further. We'll provide an update once the issue has been triaged by the product team.

Mika Dumont [MSFT] on 3/11/2021, 03:30 PM:

alex.jacob.kennedy on 3/12/2021, 08:46 AM:

Contributor Guide