admin管理员组文章数量:1393592
Opening devtools is easy enough, but what if i'm lost in a sea of chrome windows and tabs? Is it possible to bring the attached chrome window/tab on to the screen from the Devtools window?
-note this only makes sense if you have devtools running on a separate window-
Opening devtools is easy enough, but what if i'm lost in a sea of chrome windows and tabs? Is it possible to bring the attached chrome window/tab on to the screen from the Devtools window?
-note this only makes sense if you have devtools running on a separate window-
Share Improve this question edited Sep 19, 2019 at 9:26 Carlos Valencia asked May 4, 2017 at 16:58 Carlos ValenciaCarlos Valencia 7,0132 gold badges31 silver badges46 bronze badges 2-
Interesting question, but I don't think it's possible! I tried
window.focus()
andwindow.open('#foobar', '_self')
but neither of those work. You can submit a feature request on crbug. – Kayce Basques Commented May 4, 2017 at 18:24 - Thanks, I will do some more digging before opening an issue though, they seem to have their hands full. – Carlos Valencia Commented May 4, 2017 at 19:51
3 Answers
Reset to default 10This one was bugging me. I knew there had to be some hack to make this possible. Of course, the solution is one of the first friends that we meet in JavaScript land.
Open up the DevTools Console and type:
alert('show me');
Another workflow mentioned by @morgunkorn on Twitter is to press Command+Shift+D (use Control instead of Command on Windows / Linux) to dock the DevTools window, which brings the tab to focus, and then press that bo again to return DevTools to its undocked setup.
You could use this tiny Chrome extension. This allows you to set a particular tab using the keyboard mand Alt + S
. You can switch back to that set tab anytime using the keyboard mand AlT + G
, even from the undocked devtool window.
There now is a mand called "Focus debuggee", that is also listed under the 3-dots settings drop-menu in top right corner. Another bonus is you can add a keyboard shortcut for it, if you find yourself losing the tab a lot like I do!
本文标签: javascriptBring Chrome tab to foreground from Devtools windowStack Overflow
版权声明:本文标题:javascript - Bring Chrome tab to foreground from Devtools window - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744764512a2623956.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论