Home键转到Visual Studio中的行首吗?

时间:2020-03-05 18:59:00  来源:igfitidea点击:

Visual Studio中将Home键转到行首的选项在哪里?

现在你要做

HomeHome

或者

HomeCtrl+左箭头

我希望回家能走到生产线的起点。我以前看过,但现在找不到了。

解决方案

回答

在"工具/自定义/键盘"中,将"主页"键从Edit.LineStart重新分配给" Edit.LineFirstColumn"

通过OP进行编辑:必须先将"作用域"更改为"文本编辑器",然后才能起作用。

Visual Studio 2010

Visual Studio 2010删除了"范围"选项。相反,我们需要"使用新的快捷方式"选项:

回答

通过在MSDN论坛上问相同的问题:

TaylorMichaelL说:

The command you are interested in is
  Edit.LineFirstColumn.  You'll want to
  change the scope to be the Text
  Editor.  You should remove any
  existing shortcut key associated with
  the command first.  If you don't
  change the scope then the Home key
  won't work.  Then try using the Home
  key.  It should work.
  
  Michael Taylor - 9/18/08
  http://p3net.mvps.org

将范围更改为"文本编辑器"是难题中缺少的部分。

  • 转到工具/自定义/键盘
  • 将范围更改为"文本编辑器"。
  • 将" Home"键从Edit.LineStart重新分配给Edit.LineFirstColumn