Go To a Line Number

Tips Search

If you like the tips then you'll love the book!

Order your copy today:
http://www.amazon.com/gp/product/0735649928

Go To a Line Number

  • Comments 7

Keyboard:  CTRL + G
Menu:  Edit -> Go To
Command:  Edit.GoTo
Versions:  2008,2010
Published:  3/8/2010
Code:  vstipEdit0026

 

You can go to any line number in your code by simply pressing CTRL + G.  You will get this dialog:

image

 

Just type in your desired line number and click OK.  The Cursor will move to the line number you typed.

  • I'm pretty sure that Ctrl+G works in VS2003 and VS2005.

  • Did you start using VS just today? :D

  • Nice :)

    I am only going back to version 2008 for this series.  I keep having to remind folks of that, not sure why...

    Z

  • its not working for vs2008 i don't know why. do i need to set it up?

  • Jepoy,

    No special setup is required.  It should work.  You might check to see if CTRL + G is mapped to the correct command.

    Z

  • I used to it  for years. but it doesn't work anymore. One  has  to go to menu  Edit->Go To

  • Elena,

    It still works fine in 2005, 2008, and 2010.   I just tested 2010 again to make sure and CTRL + G brings up the Go To dialog.  If it is not working I would definitely make sure CTRL + G is mapped to the Edit.GoTo command in Tools | Options | Environment | Keyboard.

    Z

Page 1 of 1 (7 items)
Leave a Comment
  • Please add 2 and 4 and type the answer here:
  • Post