Visual Studio:Tab键选择并高亮代码
Visual Studio: Tab key selects and highlights code
如果我将光标放在多行注释中:
/*
* place cursor after the asterisk and before the word 'place'
*/
if (x == 0)
{
// some code
}
... 并点击 tab,Visual Studio 不会像往常一样添加空格。相反,它会突出显示整个注释(在示例中为所有三行)。如果我再次点击 tab,它将 select 并突出显示下一条语句或语句块。在我的示例中,它突出显示了整个 if
.
如何解决此问题并使 Visual Studio 选项卡结束?我希望 tab 表现得像 tab.
我正在使用 Visual Studio 2013 Ultimate 和 Resharper 9。它昨天开始这样做,我不知道为什么。
想通了。它不在 VS 的设置中! Resharper 的配置不知何故发生了变化。在 Resharper 的设置中:
Environment > Editor > Editor Behavior
取消选中标记为 "Structural Navigation" 的复选框。单击 "Save"。
如果我将光标放在多行注释中:
/*
* place cursor after the asterisk and before the word 'place'
*/
if (x == 0)
{
// some code
}
... 并点击 tab,Visual Studio 不会像往常一样添加空格。相反,它会突出显示整个注释(在示例中为所有三行)。如果我再次点击 tab,它将 select 并突出显示下一条语句或语句块。在我的示例中,它突出显示了整个 if
.
如何解决此问题并使 Visual Studio 选项卡结束?我希望 tab 表现得像 tab.
我正在使用 Visual Studio 2013 Ultimate 和 Resharper 9。它昨天开始这样做,我不知道为什么。
想通了。它不在 VS 的设置中! Resharper 的配置不知何故发生了变化。在 Resharper 的设置中:
Environment > Editor > Editor Behavior
取消选中标记为 "Structural Navigation" 的复选框。单击 "Save"。