Is there a shortcut to toggle "display: none/block" in element's style in Chrome DevTools?

Green picture Green · Jan 22, 2016 · Viewed 9.3k times · Source

In Chrome DevTools there is a shortcut to show/hide an element:

enter image description here

Chrome adds __web-inspector-hide-shortcut__ class to the element, but it is nothing more than visibility: hidden:

enter image description here

Is there similar shortcut to change element's display: none/block style? So on click it adds style='display: none;' attribute and toggles it none/block?

enter image description here

Answer

Konrad Dzwinel picture Konrad Dzwinel · Feb 1, 2016

There is no such shortcut. What you can do instead is use backspace to remove the element from the DOM and cmd+z to bring it back.