ChatGPT解决这个技术问题 Extra ChatGPT

How to reposition Chrome Developer Tools

The tools are opened on the bottom of the chrome window per default. This is a rather bad choice for a wide screen display since there is plenty of empty space to the right but not much vertical space to spare. Unfortunately, I have found no way to reposition the tools. I would like to have them on the side, similar to firebug.

The only option similar to what I want is to detach the dev tools and place chrome and the tools window side-by-side. This is not very convenient for quickly alt-tabbing from the IDE to the browser and back though, so an "integrated" solution would be nice.


C
Community

Chrome 46 or newer

Click the vertical ellipsis button ( ⋮ ) then choose the desired docking option.

https://i.stack.imgur.com/xZcUW.png

Chrome 45 or older

Long-hold the dock icon in the top right. It pops up an option to change the docking

https://paulirish.com/i/c34b30.png

To change the split between the HTML and CSS panels, go in DevTools to Settings (F1) > General > Appearance > Panel Layout.


Cool, it is present in the stable version, i simply wasn't aware of it, has even more nice options :) Thanks
in recent builds of chrome and canary, the option has been removed but you can still access it by clicking and holding the dock icon in the bottom left, it pops up an option to dock to right.
Cool, dock to right works. Now how do I move the CSS inspector on the Elements tab to the bottom of the dev tools pane? Otherwise I have to view the HTML and the CSS side-by-side in very narrow columns.
What a horrible design! Nowhere would I figure it out by myself. Nowhere else I've seen this hold and wait ever used.
@blrbr Yeah so true. If you need to do a google search just to find out how to activate an option you know exists, there is something wrong with the UI design. The keyword here is 'discoverability'. This is not discoverable easy.
A
Alexandre Marcondes

Place your pointer on the dock button and long click it (some seconds) or right & left mouse click depending on the browser version.

https://i.stack.imgur.com/LG4Os.png


D
Dr1Ku

Keyboard shortcut to toggle the docking position (side/bottom)

CTRL+SHIFT+D

And there are many shortcuts you can see them by going to

https://i.stack.imgur.com/GvB8M.jpg

Alternatively, use CTRL + ? to go to the settings, from there one can reach the "Shortcuts" sub-item on the left or use the Official reference.


⌘-Shift-D on OSX, too.
If you can't open the dock at all, try Ctrl+Shift+I -- but if your window is a popup, I don't think docking even works.
Thank you! The Inspector was somehow stuck WAY off screen, CTRL+SHIFT+D docked it for me!
For some reason when I undock the Chrome developer tools, the tool seems to run off to the right of my monitor and is no longer visible. The only way I can get it to re-appear is Ctrl+Shift+D and dock the developer tools to the side or bottom. This is weird
I'd just like to declare my love for you. 🐐💘🐐
b
brian_d

Looks like this is on the bottom left now as an icon with overlapping windows and the "Undock into separate window." tooltip.

https://i.stack.imgur.com/qLGkc.jpg


You could clarify that you have to click AND HOLD this button in order to dock to the right. As @PaulSpencer noticed, simply clicking only undocks.
u
user2243570

After I have placed my dock to the right (see older answers), I still found the panels split vertically.

To split the panels horizontally - and even got more from your screen width - go to Settings (bottom right corner), and remove the check on 'Split panels vertically when docked to right'.

Now, you have all panels from left to right :p


P
Pierre Maoui

As of october 2014, Version 39.0.2171.27 beta (64-bit)

I needed to go in the Chrome Web Developper pan into "Settings" and uncheck Split panels vertically when docked to right


C
Charix

The Version 56.0.2924.87 which I am in now, Undocks the DevTools automatically if you are NOT in a desktop. Otherwise Open a NEW new Chrome tab and Inspect to Dock the DevTools back into the window.


What do you mean "not in a desktop"? I am on 59.0.3067.6 (dev) and it's doing some strange things on certain websites. For example in Vtiger 6.5, right clicking and "inspect" opens dev tools in a new window that lacks the "Dock side" choice, however using F12 opens it normally embedded in the current tab with the "Dock side" choice available. Strange.
A
Alex Khimich

If you use Windows, there some shortcuts, while devtools are opened:

Pressing Ctrl+Shift+D will dock all devtools to left, right, bottom in turn.

Press Ctrl+Shift+F if your JS console disappeared, and you want it docked back to bottom within dev tools.


M
MBT

In addition, if you want to see Sources and Console on one window, go to:

"Customize and control DevTools -> "Show console drawer"

You can also see it here at the right corner:

https://i.stack.imgur.com/WDWIT.png