Visual Studio 2008 - jump to line number shortcut

99封情书 提交于 2019-12-03 08:31:52

问题


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?


回答1:


Ctrl + G

Check out all the keyboard shortcuts at:

http://www.microsoft.com/downloads/details.aspx?familyid=e5f902a8-5bb5-4cc6-907e-472809749973&displaylang=en




回答2:


Ctrl + G works for me.

If it doesn't work for you, you can always map whatever shortcut you want under Tools | Options | Environment | Keyboard.

EDIT: Yes, as @Brian mentions, the command in this case is 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.




回答3:


Every IDE or even text editor I have ever used either uses Ctrl + L or Ctrl + G for this purpose.

I assume this could stand for Ctrl + Line or Ctrl + Goto




回答4:


Yep Ctrl + G.

From this answer you can get a nice Shortcut poster.



来源:https://stackoverflow.com/questions/333563/visual-studio-2008-jump-to-line-number-shortcut

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!