dotnet/roslyn

Improve XML comment autocomplete trigger

开放

#52,487 创建于 2021年4月8日

 (1 条评论) (0 个反应) (0 位负责人)C# (4,257 个派生)batch import
Area-IDEBugDeveloper CommunityIDE-IntelliSenseIntelliSense-Completionhelp wanted

仓库指标

星标
 (20,414 个星标)
PR 合并指标
 (平均合并 6天 17小时) (30 天内合并 256 个 PR)

描述

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:

贡献者指南