visual-studio Home 键转到 Visual Studio 中的行首?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/83808/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-13 16:31:31  来源:igfitidea点击:

Home key go to start of line in Visual Studio?

visual-studionavigationkey

提问by Ian Boyd

Where is the option in Visual Studio to make the Home key go to the start of the line?

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

Right now you have to do

现在你必须做

Home,Home

Home,Home

or

或者

Home, Ctrl+Left Arrow

Home, Ctrl+Left Arrow

i'd prefer that home goes to the start of the line. i saw it before, but now i cannot find it.

我更喜欢 home 到行的开头。以前看过,现在找不到了。

回答by James Curran

In Tools/Customize/Keyboard, Reassign the "Home" key from Edit.LineStart" to "Edit.LineFirstColumn"

在工具/自定义/键盘中,将“Home”键从 Edit.LineStart 重新分配给“Edit.LineFirstColumn”

Edit by OP:You must change Scopeto Text Editorbefore this will work.

由 OP 编辑​​:您必须先将范围更改为文本编辑器,然后才能使用。



Visual Studio 2010

视觉工作室 2010

Visual Studio 2010 removed the "scope"option. Instead you want the "Use new shortcut in"option:

Visual Studio 2010 删除了“范围”选项。相反,您需要“使用新快捷方式”选项:

enter image description here

在此处输入图片说明

回答by Ian Boyd

From asking the same question on MSDN forums:

从在 MSDN 论坛上问同样的问题:

TaylorMichaelL said:

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

您感兴趣的命令是 Edit.LineFirstColumn。 您需要将范围更改为文本编辑器。您应该首先删除与该命令关联的任何现有快捷键。如果您不更改范围,则 Home 键将不起作用。然后尝试使用 Home 键。它应该工作。

迈克尔·泰勒 - 9/18/08 http://p3net.mvps.org

Changing the Scopeto Text Editorwas the missing piece in the puzzle.

范围更改为文本编辑器是拼图中缺失的部分。

  • Go to Tools/Customize/Keyboard
  • Change Scope to "Text Editor".
  • Reassign the "Home" key from Edit.LineStartto Edit.LineFirstColumn
  • 转到工具/自定义/键盘
  • 将范围更改为“文本编辑器”。
  • 将“Home”键从Edit.LineStart重新分配给Edit.LineFirstColumn