如何手动更改Intellicode(Intellisense)自动完整建议的优先级?
我正在Visual Studio 2022中编写C#代码。 打字时
re
每当我在新系列上
ref
,Visual Studio都建议使用,但我永远不想要“ ref”,我总是想要
return
...当我点击标签时。我不想键入第三个字母,我想“返回”成为“ re”的第一个/主要建议。我该如何告诉Visual Studio?
(这只是一个示例,还有其他一些建议,我也想更改。注意:我不是要为新条目添加新的摘要,我想更改现有内容的优先级。)
谢谢:)
注释:
也很糟糕的是:
- “ list.c” - > .apacity
- “ list.co” - > .concat
- “ list.cou” - > 。
I'm writing C# code in Visual Studio 2022.
Whenever I type
re
on a new line, VISUAL STUDIO suggests
ref
but I never want "ref", I ALWAYS want
return
... when I hit TAB. I don't want to type the 3rd letter, I want "return" to be the first/primary suggestion for "re". How can I tell Visual Studio that?
(This is only one example, there are some other suggestions I would also like to change. Note: I'm not trying to add new snippets for new entries, I want to change the priority of the existing ones.)
Thanks :)
Annotation:
Also really bad are:
- "List.c" -> .Capacity
- "List.co" -> .Concat
- "List.cou" -> .Count
Srsly, who uses those two more often than .Count??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

我认为您无法手动执行此操作。但是您引起了我们的注意,我们正在考虑如何获得您的首选行为。
如果您使用功能请求进行VSFEEDBACK票,请访问:
请将Intellicode放在标题中,以便它降落在正确的团队中。
I do not think you can do this by hand. But you brought this case to our attention, and we are thinking about how to get your preferred behavior.
If you make a VSFeedback ticket with feature request at: https://developercommunity.visualstudio.com/report?space=8&entry=suggestion
we can update you when there is progress. Please put intellicode in the title so it lands at the right team.