Is there a keyboard shortcut that can goto a specific line of the code while in DevTools?

11,242 views
Skip to first unread message

win7guru

unread,
Apr 20, 2011, 7:56:56 PM4/20/11
to Google Chrome Developer Tools
I have been trying to create a macro that checks the version of a
program, but the program has a flash badge, which makes it hard for me
to manipulate the text. The only way to access the version number, is
by viewing the source of the php file. Here is my proposed idea:

Here are the steps
1. Open Chrome
2. Type text programbadge.php
3. Press Ctrl+U to view source of php page
4. Press Ctrl+A and Ctrl+C to select all, and copy entire text
5. Determine if the clipboard contains 999.8xx
6. If it does, then goto line 5 or 6 of the code
7. If not, then goto the site and download the new version

The proposed idea is in terms of Step 6, all other steps work.

Paul Irish

unread,
Apr 20, 2011, 8:16:48 PM4/20/11
to Google Chrome Developer Tools
cmd-L or ctrl-L in the scripts tab jumps to a given line number.

But in view source there is no way to jump to a line in particular.

rodhe...@gmail.com

unread,
Jul 30, 2014, 1:18:50 AM7/30/14
to google-chrome-...@googlegroups.com
Following next steps you can achieve your objective:
-press F12 (Developer Tools),
-then select in left panel your source file,
-press Ctrl+P (show emergent search field)
-press :
-press Number-Line
-Enter

I hope this will be useful for you!

PhistucK

unread,
Jul 30, 2014, 1:21:59 AM7/30/14
to Google Chrome Developer Tools
​Shorter - Control + G (it prepends the colon for you), like in any code editor.​


PhistucK


--
You received this message because you are subscribed to the Google Groups "Google Chrome Developer Tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-develo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-chrome-developer-tools/5f36432f-1f35-4249-b7ac-1b4961544d58%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages