Tip#102: Did you know… How to specify tag specific formatting

Let’s see this with an example.  I have the following html code on my page. Now if I format the document by selecting Edit –> Format document (or Ctrl K, Ctrl D) The document becomes I want the content inside td should remain on the same line after formatting the document. Following steps would show…

2

Tip#97: Did you know… How to Display Hidden Information in Design View

The design view in Visual Studio can display glyphs and borders for the hidden non – graphic elements (such as div, span, form, and script elements). This feature helps you to see where the elements are and avoid inadvertently deleting the non-graphic elements from your page while editing. To enable it in designer click on…

4

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…

7

Tip #23: Did you know…How to launch Formatting options dialog for editor with 2 clicks?

Normally we use Tools->Options->Text Editor->HTML->Format to launch the Formatting Options dialog shown below: You can also launch the above dialog from the editor surface with just 2 clicks. On the editor surface, right-click and choose ‘Formatting and Validation’ from the context menu. Voila! You get the Formatting Options dialog shown above. Ranjini SDET | Visual…

1