Show All Settings with Web Development

Windows:  ALT + T, O Menu:   Tools | Options Command:  Tools.Options Versions:  2005, 2008, 2010 Code:  vstipEnv0062   You can choose between one of the two Web Development settings:     When you do, you will not be able to see all your settings when you go to Tools | Options:     This is…

0

Create Web Application or Virtual Directory in IIS

Keyboard:  SHIFT + ALT + NMenu:  File -> New Web SiteCommand:  File.NewWebSiteVersions:  2008,2010Published:  12/28/2010Code:  vstipEnv0058   Did you know you can create Web Applications and Virtual Directories in IIS from inside Visual Studio?    Just go to File -> New Web Site and click on the Browse button:     Choose “Local IIS” and pick…

0

Change CSS Formatting

Menu:  Tools -> Options -> Text Editor -> CSS -> FormattingVersions:  2008,2010Published:  12/26/2010Code:  vstipEdit0094   People are very picky about how their code is styled.  Fortunately, Visual Studio comes with the ability to format your CSS code the way you like it.  Just go to Tools -> Options -> Text Editor -> CSS -> Formatting:…

6

Choosing CSS Versions

Menu:  Tools -> Options -> Text Editor -> HTML -> Validation (HTML Schema)Versions:  2008,2010Published:  12/25/2010Code:  vstipEdit0093         Dedicated Style Sheets When working with Cascading Style Sheets you often find yourself working with specific versions.  When you create a CSS file in Visual Studio:     You can choose what version you want…

0

Go To Definition for CSS

Keyboard:  F12Command:  Edit.GoToDefinitionVersions:  2008,2010Published:  12/24/2010Code:  vstipFind0021   Work with SharePoint?  Then make sure to check out the new SharePoint Developer Team Blog!   For those that are familiar with using “Go To Definition” in your code may not be aware that you can use the same technique on for class attributes to go to your CSS…

4

Application and Page Level Tracing

Versions:  2008,2010Published:  12/23/2010Code:  vstipProj0030   Work with SharePoint?  Then make sure to check out the new SharePoint Developer Team Blog!   When debugging any project is is desirable to have as much information as possible to help deal with any issues.  Working with web projects is always a challenge no matter what IDE you use.  Fortunately,…

1

Use a Specific Port for the Development Server

Versions:  2008,2010Published:  12/21/2010Code:  vstipProj0029   Work with SharePoint?  Then make sure to check out the new SharePoint Developer Team Blog!   If you are using a firewall on your operating system and/or just want to use the same port while you do web development you can configure Visual Studio to use a fixed port.  To do…

0

Format the Current Document or Selection (HTML Designer)

Keyboard:  CTRL + K, CTRL + D (document); CTRL + K, CTRL + F (selection)Menu:  Edit -> Advanced -> Format Document; Edit -> Advanced -> Format SelectionCommand:  Edit.FormatDocument; Edit.FormatSelectionVersions:  2008,2010Published:  12/18/2010Code:  vstipEdit0089   In vstipEdit0057 (http://blogs.msdn.com/b/zainnab/archive/2010/05/19/format-the-current-document-or-selection-vstipedit0057.aspx) I showed you how to format code.  I thought it would be a good idea to look at the…

0

Set as Start Page

Menu:  Project -> Set As Start PageCommand:  Project.SetAsStartPageVersions:  2008,2010Published:  12/16/2010Code:  vstipProj0027     When you create a new web project the default page is set for you automatically and is the first page you see when you start debugging:     However, you may find that you want a different page.  It’s easy to change…

2

Change the Default View in the HTML Editor

Menu:  Tools -> Options -> HTML Designer -> General Versions:  2008,2010Published:  12/15/2010Code:  vstipEdit0088   The default view when you use the HTML Designer is Source View:     If you don’t like this or just want another view to be the default you can go to Tools -> Options -> HTML Designer -> General  and…

5