They will also be lost upon page refresh unless you enable persistent editing. HTML edits can be undone or redone using the normal Ctrl+Z and Ctrl+Y hotkeys. You can ensure your changes save by hitting Ctrl+Enter or simply clicking outside of the text box you are editing. Your first instinct may be to hit the Escape key, but this will back you out of editing while discarding your changes. Telling DevTools that you are done editing can be tricky. By right-clicking on the HTML in the “Elements” tab and selecting “Edit as HTML,” you can make live edits to the markup of a webpage that Chrome will immediately render once you’re done editing. Once an element is selected, you can interact with it in all kinds of ways. You can locate the HTML of any element on the page by clicking on it. Chrome will also show you positioning and sizing information of elements as you hover over them. Once the inspector is active, you can locate the HTML of any element on the page by clicking on it. If you work regularly in a Linux environment, there’s a good chance you’ve used this shortcut on accident many times when you meant to copy text! The second, faster way is to use the keyboard shortcut Ctrl+Shift+C. First is to open DevTools with F12, select the “Elements” tab, and click the cursor icon in the top left.
![cmd run html inspector cmd run html inspector](https://cdn.ttgtmedia.com/rms/editorial/11618_SITO_Dockerfile-commands_Fig3.png)
There are two quick ways to open the inspector.
#Cmd run html inspector code#
Even though I am more comfortable working in our backend code than I am with CSS and HTML, I was able to easily implement these check marks with the power of live editing. While working on Lucidchart, one of my recent projects was to add some check marks into the inputs where users fill in their billing information in order to convey immediate feedback when the users entered properly formatted and valid information.
![cmd run html inspector cmd run html inspector](https://raw.githubusercontent.com/compulim/vscode-closetag/master/demo.gif)
This functionality allows any developer, even those with weaker HTML and CSS knowledge, to quickly prototype and iterate on potential changes to a web page. One of the most useful features of DevTools for web developers is the ability to live edit the HTML and CSS on a page. Chrome DevTools is a powerful suite of web development tools built right into the Chrome browser.