Tip #59: Did you know…How you can automatically format unformatted HTML on paste in VS?


Do you copy/ paste a lot of unformatted HTML content in to your web forms? Do you always format HTML after pasting such content? There is an easy way to automatically format HTML on paste in VS. Here is how you do it.

In Tools->Options dialog, go to Text Editor->HTML->Miscellaneous page. Check ‘Format HTML on paste’ option.

FormatHTMLonPaste

After checking this option on, whenever you paste unformatted HTML, it gets formatted automatically.

Ranjini Mathrubootham

SDET, Visual Web Developer

Comments (7)

  1. What's New says:

    Do you copy/ paste a lot of unformatted HTML content in to your web forms? Do you always format HTML

  2. Saif Khan says:

    This is good to know! Thanks for sharing.

  3. My latest in a series of the weekly, or more often, summary of interesting links I come across related to Visual Studio. New on Visual Studio Gallery: Quick Open File for Visual Studio 2008 Tomasz Modelski explained how to pre-generate lazy loading proxies

  4. Mohd Ghufran says:

    Yes i do copy/ paste a lot of unformatted HTML content. Thanks for help.

    😉

  5. Vijay says:

    This is good to know! Thanks for sharing.

  6. shivam says:

    But how can we automatically format the unformatted  HTML content from database??