Visual Studio 2008 - jump to line number shortcut

后端 未结 4 810
情歌与酒
情歌与酒 2021-02-04 00:07

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?

4条回答
  •  名媛妹妹
    2021-02-04 00:39

    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.

提交回复
热议问题