Visual Studio SDK:整行建议

发布于 2025-02-06 20:20:21 字数 394 浏览 0 评论 0原文

如何使用Visual Studio扩展性来处理新的基于AI的建议功能?我指的是以下新功能(在VS2022中?):

”在此处输入图像描述”

我可以使用iasynccompletionsource和其他东西将自定义条目添加到自动complete列表中,但是我' m寻找浅灰色的整行建议(string.isnullorenty ...),显示在上图中。如果可能的话,我想提供自己的建议来替换内置建议。

How can I work with the new AI-based suggestion feature using Visual Studio Extensibility? I'm referring to the following new feature (in VS2022?):

enter image description here

I can use IAsyncCompletionSource and stuff to add custom entries to the auto-complete list, but I'm looking for the light-grey whole line suggestion (string.IsNullOrEmpty...) that appears in the above image. If possible, I'd like to provide my own suggestion to replace the built-in suggestion.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文