• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 9. Peel Rubber: Maxing Out Your ... > Do Not Pass Go, Go Directly to Line ...

Do Not Pass Go, Go Directly to Line Number

We’ve all had pages that contain a JavaScript error at some point. When the browser tells us that we have an error on a specific line number, we’re anxious to look at that line to see what is causing the trouble. Don’t bother scrolling to get there, just use the Go to Line Number command, which is only enabled when Code view has focus. Select View > Go to Line Number or use the Ctrl+G (Command+G) keyboard shortcut. When the Go to Line Number dialog appears, type the line number and press Enter (Return) or click OK. The document scrolls (if necessary) and your cursor is placed at the start of the specified line number. The Go to Line Number command proves especially handy when you’re working in long documents with hundreds of lines of code.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint