Visual Studio 2017命名参数语法突出显示?

时间:2018-06-08 18:24:54

标签: c# visual-studio visual-studio-2017 syntax-highlighting

在Visual Studio 2017中,有没有办法在不使用Resharper的情况下为命名参数获取语法高亮?

public void TestThis(string name, string title)
{
    //Do something
}

public void TestThat()
{
    var name = string.Empty;
    var title = string.Empty;

    TestThis(
      name: name,  //highlight "name:"
      title: title); //highlight "title:"
}

0 个答案:

没有答案