Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>debug-htmlNew to Visual Studio Code? Get it now.
debug-html

debug-html

Noran Diaconu

|
5,430 installs
| (0) | Free
Add/remove debug text from div elements in html files.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

debug-html

Add/remove debug text from div elements in html files.

Usage

After installing the extension, two commands will now be available from the command palette.

  • Add Debug: adds .#. after each div element in the html file currently open in the vs code editor
    • Optionally enter a letter in following text box to help differentiate files
    • Ex: Entering x will output .x#. and empty input will output .#.
  • Remove Debug: removes the .#. added by the previous command

These should help to quickly identify elements on an html page that has many div elements.

Example

Before:
<html>
  <div>start</div>
  <head>
    <div>head</div>
  </head>
  <body>
    <div>body</div>
  </body>
  <div>end</div>
</html>

After:
<html>
  <div>start</div>.1.
  <head>
    <div>head</div>.2.
  </head>
  <body>
    <div>body</div>.3.
  </body>
  <div>end</div>.4.
</html>

Hope this helps!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft