Enable Debugging in Web.Config

Versions:  2008,2010Published:  12/14/2010Code:  vstipProj0026   If you have ever created a web project in Visual Studio then you have undoubtedly encountered this dialog:     A quick read tells you that it will modify the Web.config file to enable debugging:     There are a couple of things to point out here: 1.  You can…

2

JScript Open Braces on a New Line

Menu:  Tools -> Options -> Text Editor -> JScript -> FormattingVersions:  2008,2010Published:  12/13/2010Code:  vstipEdit0087   By default, Visual Studio will format JScript functions and control blocks with the open brace on the same line as the declaration:     Without getting into the big debate about whether this is good or bad, let’s assume you…

3

Disable HTML, CSS, or JScript IntelliSense

Menu:  Tools -> Options -> Text Editor -> HTML -> GeneralVersions:  2008,2010Published:  12/10/2010Code:  vstipEdit0085   Personally, I love IntelliSense anywhere I code:   However, some folks don’t like it in some places and one place I find that is true is in the HTML editor.  You can turn off IntelliSense by going to Tools ->…

0

Display HTML/CSS Warnings as Errors

Menu:  Tools -> Options -> Text Editor -> HTML -> ValidationVersions:  2008,2010Published:  12/9/2010Code:  vstipEdit0084   Normally HTML and CSS syntax problems will show up as warnings (green squiggles):   These also show up as warnings in the Error List window:     This means you can build and run the application if you choose to…

0

View in Browser

Keyboard:  CTRL + SHIFT + WMenu:  File -> View in BrowserCommand:  File.ViewinBrowserVersions:  2008,2010Published:  12/8/2010Code:  vstipTool0119   You can quickly view your current page in your browser by pressing CTRL + SHIFT + W.  It will automatically open up your default browser (see vstipEnv0057 http://blogs.msdn.com/b/zainnab/archive/2010/12/04/using-additional-browsers-for-web-development-vstipenv0057.aspx) for you:

0

Comment and Uncomment in Web Pages

Keyboard:  CTRL + K, CTRL + C; CTRL + K, CTRL + UMenu:  Edit -> Advanced -> Comment Selection; Edit -> Advanced -> Uncomment SelectionCommand:  Edit.CommentSelection; Edit.UncommentSelectionVersions:  2008,2010Published:  12/7/2010Code:  vstipEdit0083   Comment By now you probably know that you can comment and uncomment your code but did you know you can do the same thing…

1

Insert Quotes When Typing Attribute Values

Menu:  Tools -> Options -> Text Editor -> HTML -> FormattingVersions:  2008,2010Published:  12/6/2010Code:  vstipEdit0082   One of the more annoying things about web development in Visual Studio is when I am typing in attributes and it doesn’t include the quotes automatically:     You can have quotes included automatically when you type in attributes if…

1

Vertical Split View

Menu:  Tools -> Options -> HTML Designer -> GeneralVersions:  2008,2010Published:  12/5/2010Code:  vstipEdit0081   The default way Split view handles the panes is to tile them horizontally:     However, you can change this by going to Tools -> Options -> HTML Designer -> General and selecting “Split views vertically”:     Now the Split view…

3

Using Additional Browsers for Web Development

Menu:  File -> Browse WithCommand:  File.BrowseWithVersions:  2008,2010Published:  12/4/2010Code:  vstipEnv0057   When you are doing web development in Visual Studio you may want to use a different browser than Internet Explorer.  You can do this by using the Browse With dialog.  Getting to this dialog is a little interesting as it is context sensitive.  So it…

0