Lists new features and enhancements in the text editor, Web page and HTML designer, and XML editor.
Visual Studio features a new Web page designer that includes many enhancements for creating and editing ASP.NET Web pages and HTML pages. It provides a simpler, faster way to create Web Forms pages than in Visual Studio .NET 2003.
Visual Web Developer features improvements in all areas of Web site development. You can create and maintain Web sites in local folders, as in Internet Information Services (IIS) applications, or across a File Transfer Protocol (FTP) connection. The Visual Web Developer designer supports all ASP.NET enhancements, including nearly two dozen new controls that simplify many Web development tasks.
Design view of the HTML designer includes many improvements that support new ASP.NET features or enhance the WYSIWYG Web page design experience. Task-based editing using smart tags guides you through performing the most common procedures with controls, such as data binding and formatting. You can edit the new ASP.NET master pages visually. Template editing has been improved to make it easier to work with data controls as well as new controls such as the Login control. Editing HTML tables for layout or to display columnar information is now easier and more intuitive.
Visual Web Developer produces XHTML 1.1 markup by default. At the same time, you can select from a list of schemas that help you produce markup to match the abilities of different browsers or standards. HTML validation points out markup that does not conform to the selected schema.
The HTML editor also provides options to allow you to precisely control the format of all HTML and of ASP.NET markup. Formatting is preserved exactly when you switch views.
You can easily move around your documents with the new tag navigator that shows you where you are in the current hierarchy. Using the tag outline feature, you can collapse sections of the document, such as large tables.
Figure 2: Tag navigator in the Web Page Designer
For programming, the code editor provides better productivity with enhanced IntelliSense. Visual Web Developer supports both ASP.NET models for writing the code for an ASP.NET Web page, including the single-file page model and the improved code-behind model. You can reference components automatically by simply adding them to a folder in your site. Data binding is substantially easier, and in many cases requires no code at all. At the same time, you can easily access data in databases, XML files, or business objects. For more information, see What's New in Web Development for Visual Studio.
A new XML editor is available in this release of Visual Studio. This editor takes advantage of the power of the System.Xml and System.Xml.Xsl classes in the .NET Framework and conforms with XML standards. Some of the features included are:
-
Full XML 1.0 syntax checking XML and DTD syntax errors are reported while you type, and detailed descriptions appear in the Error List Window.
-
Validation Many XML editors require that you manually check for XSD, DTD, or XDR validation errors. The Visual Studio XML editor uses a validation engine that can perform XSD or DTD validation while you type.
-
Code snippets The XML editor adds dynamically generated code snippets based on your XML schemas. Press the TAB key after the element name to automatically populate the required attributes and child content. Many useful XML snippets are also provided, including a snippet for building new code snippets.
-
Flexible schema association The editor searches for XML schemas and automatically associates them with your document. The editor can find schemas in a schema cache directory and in your project, or by using schemaLocation attributes or user-specified locations.
-
XSD-based IntelliSense All IntelliSense is based on your XML schemas and the editor provides accurate IntelliSense with full support for XSD.
-
Auto-insertion The editor inserts attribute quotes and end tags automatically, as well as required namespace and xsi:type attributes.
-
Auto-formatting The editor supports the Format Selection feature, available on the Advanced submenu of the Edit menu, to auto-format when you type the closing tag or paste from the Clipboard. This feature also auto-formats code snippets.
-
Configurable text colors The editor includes several customizable color options for text in the Fonts and Colors, Environment, Options Dialog Box that are separate from HTML color options so you can customize the XML colors differently.
-
Create XML schema The editor can infer a schema from existing XML documents, which makes XSD schema design much easier. The editor can also convert your DTD or XDR schemas to XSD.
-
Editing XSL Additional features and color-coding for XSL keywords are available when you edit XSL. In addition, a two-pass validation algorithm is applied to ensure better XSD validation and IntelliSense with the XSLT style sheets.
-
Secure XSL transformations The Show XSL Output feature enables you to perform your XSL transformations securely with a single button click so you can preview the results. The editor supports writing HTML to a Web browser window and XML and text output to another code editor.
-
Debugging XSL The XSL debugger is new to Visual Studio and is built on the IL generating XslCompiledTransform class provided in the .NET Framework. You can now step from your C# or Visual Basic applications directly into your XSLT transforms. The XSL debugger is based on the CLR debugger; it enables you to do all the things you can normally do with a debugger, including evaluating XPath expressions in the Watch window.
For more information, see XML Editor.