Browse by Tags
All Tags »
Editor (
RSS)
It's a nice time saver if you would like the HTML editor to automatically add quotes for the attribute values while you are typing. To set this option select Tools->Options. Check Show all settings. From the left pane select Text Editor -> HTML -> Format and check the insert attribute value quotes when typing checkbox. Now as soon as you hit "=" for the attrib value, editor will insert a pair of quotes and show the intellisense for the values accepted. Select a value from the intellisense...( read more ) Read More...
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. After checking this option on, whenever you paste unformatted HTML, it gets formatted automatically. Ranjini Mathrubootham SDET, Visual Web Developer...( read more ) Read More...
If you make a lot of customization to per tag options and you want import/ export these settings you could easily do so with Tools->Import/Export Settings dialog. To export your custom settings to a vssettings file, launch Import and Export Settings Wizard from the menu by choosing Tools->Import/Export Settings. Click ‘Next’ In the next page of the dialog, uncheck ‘All Settings’. Expand Options->Text Editor node. Check ‘HTML Tag Specific’ checkbox as shown below Click ‘Next’. You can change...( read more ) Read More...
In Visual Studio, click Tools -> Options. In the Options dialog on the left pane select Text editor -> JScript -> Formatting. Check Place open brace on new line for functions. Deepak Verma SDET | Visual Web Developer...( read more ) Read More...
Overtime C# source code files may have unnecessary & unorganized using directives. Visual Studio IDE organize using options can help you to unclutter the source code. To organize the C# code right click anywhere inside the code editor, select Organize usings. Select Remove Unused Usings to remove any using directives that are not used in the source code (this may remove some required using directives if the source code doesn't build) Select Sort Usings to organize alphabetically the using directives...( read more ) Read More...
If you have a style defined as Class = ”fooRed” as shown below and want to quickly know what does fooRed style contain? < div class ="fooRed"> In RED </ div > Just place your cursor on fooRed and hit the F12 button. This will highlight the CSS class for you even if the class lives in the Current Page or in an External style sheet . F12 is the short cut you can use instead of, Right Clicking fooRed and selecting “Go to Definition” action in the context menu as shown...( read more ) Read More...
VS 2008 has this cool feature of downgrading any CSS/HTML errors to warnings. This is helpful when you want to separate out validation errors and are looking for what is actually stopping your build. In VS 2008 the default behavior is to display any HTML/CSS errors as warnings as shown in the picture below. Note that warnings have a green squiggle. The settings for this feature is available under Tools –>Options –>Text Editor –>HTML->Validation as shown below. If you still want your CSS...( read more ) Read More...
More Posts