views:

2359

answers:

4

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?

+3  A: 

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.

Galwegian
In this case the command is Edit.Goto
Brian
A: 

yep Ctrl+G

From this answer you can get a nice Shortcut poster.

KeesDijk
+7  A: 

Ctrl + G

Check out all the key board short cuts at :

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

Samiksha
cheeky ;) Giving the correct answer and then changing it to the 'real' answer after the OP marked the first one as accepted.
Metro Smurf
A: 

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

adam