Welcome to MSDN Blogs Sign in | Join | Help

News

  • These postings are provided "AS IS" with no warranties, and confer no rights. Use of included code samples are subject to the terms specified Terms of Use
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

Posted: Wednesday, April 29, 2009 1:36 PM by WebDevTools

Comments

What's New said:

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

# April 29, 2009 7:05 PM

Saif Khan said:

This is good to know! Thanks for sharing.

# April 30, 2009 5:10 PM

Visual Studio Hacks said:

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

# May 5, 2009 10:31 AM

Mohd Ghufran said:

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

;-)

# June 15, 2009 5:29 AM

Vijay said:

This is good to know! Thanks for sharing.

# June 16, 2009 12:56 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

  
Enter Code Here: Required

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker