visual-studio Visual Studio 2008 - 跳转到行号快捷方式
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 
原文地址: http://stackoverflow.com/questions/333563/
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
Visual Studio 2008 - jump to line number shortcut
提问by serg10
I can go to a specific line number by double clicking in the status bar in Visual Studio. Is there a keyboard shortcut that does the same thing?
我可以通过双击 Visual Studio 中的状态栏来转到特定的行号。有没有做同样事情的键盘快捷键?
回答by Samiksha
Ctrl+ G
Ctrl+ G
Check out all the keyboard shortcuts at:
查看所有键盘快捷键:
回答by Galwegian
Ctrl+ Gworks for me.
Ctrl+ G对我有用。
If it doesn't work for you, you can always map whatever shortcut you want under Tools | Options | Environment | Keyboard.
如果它不适合您,您可以随时在 Tools | 下映射您想要的任何快捷方式。选项 | 环境 | 键盘。
EDIT:Yes, as @Brian mentions, the command in this case is Edit.GoTo
编辑:是的,正如@Brian 提到的,在这种情况下的命令是Edit.GoTo
I just realised that the default in C# settings for this command is Ctrl+ G, whereas in VB Settings, there is no default keyboard short - it's mapped to show the immediate window - strange I think. I swapped the mappings so that the two environment behave the same.
我刚刚意识到这个命令的 C# 设置中的默认值是Ctrl+ G,而在 VB 设置中,没有默认的键盘短 - 它被映射为显示即时窗口 - 我认为很奇怪。我交换了映射,以便两个环境的行为相同。
回答by adam
Every IDE or even text editor I have ever used either uses Ctrl+ Lor Ctrl+ Gfor this purpose.
为此,我使用过的每个 IDE 甚至文本编辑器都使用Ctrl+L或Ctrl+ G。
I assume this could stand for Ctrl+ Line or Ctrl+ Goto
我认为这可以代表Ctrl+ Line 或Ctrl+ Goto

