How to enable view of rulers in Chrome DevTools?

Google ChromeGoogle Chrome-Devtools

Google Chrome Problem Overview


Chrome DevTools previously offered a setting to show rulers when inspecting elements. It had a pixel ruler at the sides of the view, and boundary lines for each element extending the full view of the page.

It used to be found (as I recall) in "DevTools Settings / General". There no longer is a General section, and I don't see it in "DevTools Settings / Appearance". Has this been moved, or removed? I'm not finding documentation or discussion of it.

Google Chrome Solutions


Solution 1 - Google Chrome

You can enable it in DevTools Settings > Preferences, under the Elements section.

Update: Most of them might be confused on how to use it. To use, open console and hover on an element to view the ruler. Thanks @Brandito for mentioning in the comment.

Show rulers

Solution 2 - Google Chrome

  1. Click Toggle Device Toolbar Toggle Device Toolbar which is in the top-left of your DevTools window.

  2. Click More Options and then select Show rulers.

    Show rulers

    The rulers are to the left of and above your viewport. You can click on the numbers to set the width and height to that size.

    Rulers

Solution 3 - Google Chrome

Click on the Chrome setting, then:

  1. Under Preferences, Enable DevTools and enable Ruler.
  2. Go to your page and right click on it, then click inspect.
  3. Click Toggle Device Toolbar icon (top-left of DevTools window.

enter image description here

Solution 4 - Google Chrome

In Developer Mode Press Ctrl+Shift+P then type Ruler enter image description here

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Question2540625View Question on Stackoverflow
Solution 1 - Google ChromeGideon PyzerView Answer on Stackoverflow
Solution 2 - Google ChromeKayce BasquesView Answer on Stackoverflow
Solution 3 - Google ChromeHanan FadelView Answer on Stackoverflow
Solution 4 - Google ChromeAmir RezaView Answer on Stackoverflow