dotnet/roslyn

Improve XML comment autocomplete trigger

Open

#52,487 opened on Apr 8, 2021

View on GitHub
 (1 comment) (0 reactions) (0 assignees)C# (4,257 forks)batch import
Area-IDEBugDeveloper CommunityIDE-IntelliSenseIntelliSense-Completionhelp wanted

Repository metrics

Stars
 (20,414 stars)
PR merge metrics
 (Avg merge 6d 17h) (256 merged PRs in 30d)

Description

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