为什么 IntelliSense 在 if 语句中的函数左侧显示星号

Why is IntelliSense showing a star to the left of functions within if statements

使用 Microsoft Visual Studio Professional 2019 版本 16.4.1

IntelliSense 在 IsNullOrEmpty 的左侧显示一个星形图标。不知道是什么意思。

编辑 1: 不只是 IsNullOrEmpty

编辑 2 它只显示 if() 语句

中的星号

那是 Intellicode 在工作。在 VS2019 16.1 或更高版本中默认激活。:

IntelliCode provides AI-assisted IntelliSense in both Visual Studio and Visual Studio Code. IntelliCode suggestions appear at the top of the completion list with a star icon next to them.

The completion list suggests the most likely correct API for a developer to use rather than presenting a simple alphabetical list of members. To provide this dynamic list, IntelliCode uses the developer's current code context as well as patterns based on thousands of highly rated, open-source projects on GitHub. The results form a model that predicts the most likely and most relevant API calls.

(来自 https://docs.microsoft.com/en-us/visualstudio/intellicode/overview#context-aware-code-completions

在此特定情况下,* IsNullOrEmpty 选项与 "IsNullOrEmpty" 完全相同。它只是在顶部用星号突出显示。在较长的建议列表中,推荐的方法或 属性 可能不会立即可见(需要滚动才能看到)。

要关闭它,请禁用 Visual Studio IntelliCode 扩展。

扩展菜单 -> 已安装 -> Visual Studio IntelliCode