--- uid: web-pages/overview/getting-started/program-asp-net-web-pages-in-visual-studio title: "Programming ASP.NET Web Pages (Razor) Using Visual Studio | Microsoft Docs" author: tfitzmac description: "This appendix explains how you can use Visual Studio 2010 or Visual Web Developer 2010 Express to program ASP.NET Web Pages with the Razor syntax." ms.author: aspnetcontent ms.date: 02/13/2014 ms.assetid: 0acfec5a-48f2-4766-a801-a0f426966f0a msc.legacyurl: /web-pages/overview/getting-started/program-asp-net-web-pages-in-visual-studio msc.type: authoredcontent uid: aspnet/web-pages/overview/getting-started/program-asp-net-web-pages-in-visual-studio --- Programming ASP.NET Web Pages (Razor) Using Visual Studio ==================== by [Tom FitzMacken](https://github.com/tfitzmac) > This article explains how you can use Visual Studio or Visual Web Developer Express to program ASP.NET Web Pages (Razor) websites. > > What you'll learn > > - What you need to install (if anything) to work with ASP.NET Web Pages in your version of Visual Studio. > - How to add support for ASP.NET Web Pages to Visual Web Developer 2010 Express. > - How to use features in Visual Studio to work with ASP.NET Razor pages, including IntelliSense and the debugger. > > > ## Software versions used in the tutorial > > > - ASP.NET Web Pages (Razor) 3 > - Visual Studio 2013 > - WebMatrix 3 > > > This tutorial also works with ASP.NET Web Pages 2, Visual Studio 2012, Visual Studio 2010, and WebMatrix 2. You can program ASP.NET Web pages with Razor syntax using WebMatrix or many other code editors. You can also use Microsoft Visual Studio which is a full-featured integrated development environment (IDE) that provides a powerful set of tools for creating many types of applications (not just websites). To work with ASP.NET Razor pages, you can either use one of the full editions of Visual Studio or the free [Visual Studio Express for Web](https://www.visualstudio.com/downloads/download-visual-studio-vs#d-2013-express) edition. Two particularly useful features that Visual Studio provides for programming with ASP.NET Razor web pages are: - *IntelliSense*. The IntelliSense feature built into Visual Studio is more comprehensive than IntelliSense in WebMatrix. - *Debugger*. The debugger lets you troubleshoot your code by stopping a program while it's running, examining variables, and stepping through the code line by line. ## Using Visual Studio with Different Versions of ASP.NET Web Pages Visual Studio 2012 and Visual Studio 2013 include support for ASP.NET Web Pages. (The packages that are required in order to support ASP.NET Web Pages are installed when you install Visual Studio.) Visual Studio 2010 does not include support by default for ASP.NET Web Pages. To use ASP.NET Web Pages with Visual Studio 2010, you must install the ASP.NET MVC package. To get ASP.NET Web Pages 2, you install ASP.NET MVC 4. The following table summarizes the support for ASP.NET Web Pages in different versions of Visual Studio. | | Visual Studio 2010 | Visual Studio 2012 | Visual Studio 2013 | | --- | --- | --- | --- | | **ASP.NET Web Pages 2** | Install ASP.NET MVC 4 | (Included) | (Included) | | **ASP.NET Web Pages 3** | | Update to ASP.NET Web Pages 3 through NuGet | (Included) | To work with Visual Studio 2010, see [Installing Support for ASP.NET Web Pages in Visual Studio 2010](#vs2010support). ## Launching Visual Studio from WebMatrix If you have started a project in WebMatrix and want to switch to Visual Studio, WebMatrix provides a button to easily open the project in Visual Studio. You must have Visual Studio installed on your computer for this button to be enabled. The following image shows the button in WebMatrix. ![launch Visual Studio](program-asp-net-web-pages-in-visual-studio/_static/image1.png) When you click the button, the project is opened in Visual Studio. You can switch back and forth between WebMatrix and Visual Studio without any problems. You will be notified if any files have changed in the other environment and need to be reloaded to get the latest changes. ## Creating ASP.NET Razor Site in Visual Studio To create an ASP.NET Razor website in Visual Studio: 1. Start Visual Studio or Visual Web Developer. 2. In the **File** menu, click **New Web Site**. ![create new web site](program-asp-net-web-pages-in-visual-studio/_static/image2.png) 3. In the **New Web Site** dialog box, select the language to use (Visual C# or Visual Basic). 4. Select the **ASP.NET Web Site (Razor)** template. ![razor site](program-asp-net-web-pages-in-visual-studio/_static/image3.png) 5. Click **OK**. Your new project exists and is populated with some default web pages to help you get started. ### Using IntelliSense Now that you've created a site, you can see how IntelliSense works in Visual Studio. 1. In the website you just created, open the *Default.cshtml* page. 2. After the `