智能感知中的模糊自动完成

时间:2017-08-17 07:59:15

标签: visual-studio-2015 intellisense

我正在使用 Visual Studio Community 2015 进行C#项目。

我想知道我是否可以为Intellisense完成启用模糊匹配。

例如,如果我输入madeco,则完成时应提出max_device_count

我遇到了JetBrains的Resharper插件,它正是这样做的,但我保留安装它,因为它是第三方工具,而且看起来很重。

实施例

示例C#类:

class A
{
  int max_bytes = 0;
  int max_device_count = 0;
  int max_workers = 0;

  public A()
  {
    // 1. Typing 'ma' proposes 'max_bytes',
    //    and in the list I see 'max_device_count' and 'max_workers'

    // 2. Typing 'max_d' proposes 'max_device_count'

    // 3. Typing 'madeco' should fuzzy match 'max_device_count', but it does not
  }
}

1 个答案:

答案 0 :(得分:1)

我已经查看了VS 2015/2017 15.2 / 2017 15.3并发现模糊模式已添加到2017年15.3版本中,请检查以下内容: enter image description here

请下载the VS 2017 15.3,它应该可以正常运行。