An Idea can change your life.....

Saturday, November 24, 2007

Auto html format/indent in Visual Studio .NET

Auto html format or indent
For example, let's say I paste this HTML into VS.NET "source"view: I'd like to issue a command to VS to have it reformat this source and change it. Try this : "Tools", "Options", scroll to "Text Editor", and then "HTML","Miscellaneous", select "Format HTML on Paste".That does exactly what you want. Simply press:Control + K AND Control + D....and the code will be auto-formatted. This works in HTML and in code(VB/C#) windows

1 comment:

Unknown said...

You can use Ctrl + K+F too :-) but the issue here is that the formatting doesn't apply to Javascript !! You can try http://jcay.com/javascript-code-improver.html to format javascript