Today, the Visual Studio team announced the release of RTM version of Visual Studio 2013 Update 2 . Our team added a few useful features and did some bug fixing in this update to improve the web development experience. This blog will contain all of the features introduced in RC and a few updates. We will have future blogs to talk about some of the new features in detail. The release notes contain more details.
We added the following new features in the RTM release since RC release, which can be seen in detail in the corresponding sections.
- The JSON editor now supports the format command, better intelliSense filtering, auto structure completion, and has beautified the default colorization
- All the localized languages supported by VS2013 RTM have been updated for this release.
- Knockout IntelliSense is re-enabled in this release.
- Additional CSS selector IntelliSense in the CSS/LESS/SASS editors. These were rolled up from Web Essentials (the Web Essentials 2.0 RC version removed them when released for VS2013 Update 2 RC).
- HTML element names
- Class names
- IDs
- Attribute names
- Attribute values
The following is a list of new web feature for Visual Studio 2013 Update 2 RTM.
New Sass project item and editor
We added LESS in VS2013 RTM, and we now have a Sass project item and editor. Sass editor features are comparable to the LESS editor and include the following: colorization, variable and Mixins IntelliSense, comment/uncomment, quick info, formatting, syntax validation, outlining, goto definition, color picker, tools option setting, and more.
New JSON project item and editor
We have added a JSON project item and editor to Visual Studio. Current JSON editor features include colorization, syntax validation, brace completion, outlining, tools option setting, format, and more.
IntelliSense now supports JSON Schema v3 and v4. There is a schema combo box to choose existing schemas, edit the local schema path, or simply drag drop a project JSON file into the editor to get the relative path.
Create remote Azure resources option when creating a new Web project
We added an Azure “Create remote resources” checkbox on the new web application dialog. By choosing it, you will be able to integrate the experience of creating a new web project, creating a new Azure web site or VM, , and creating a publish profile.
We also support remotedebug and remote viewing and editing of Azure website content files.
A new dialog to trust IIS express SSL certificate
To eliminate the security warning when browsing and debugging HTTPS on localhost, we added a dialog to allow Internet Explorer and Chrome to trust the self-signed IIS express SSL certificate.
For example, a web project property can be set to use SSL. Click F4 to bring up the properties dialog. Change SSL Enabled to true. Copy the SSL URL.
Set the web project property page web tab to use the HTTPS URL (The SSL URL will be https://localhost:44300/ unless you've previously created SSL Web Sites.)
Press CTRL+F5 to run the application. Follow the instructions to trust the self-signed certificate that IIS Express has generated.
Read the Security Warning dialog and then click Yes if you want to install the certificate representing localhost.
The site will be shown in IE or Chrome without the certificate warning in the browser.
Firefox uses its own certificate store, so it will display a warning.
ASP.NET Scaffolding
The MVC Scaffolder will generate dropdowns for Enums. This uses the Enum helpers in MVC.
We updated the EditorFor templates in MVC Scaffolding so they use the Bootstrap classes.
MVC and Web API Scaffolders will add 5.1 packages for MVC and Web API
Here are some screen shots when scaffolding models with Enum.
Model code:
Compile, and then click add New Scaffolded Item…
Choose MVC5 Controller with views, using Entity Framework:
Add Controller using the model:
Check the generated code, for example Views/WeekdayModels/Edit.cshtml contains @Html.EnumDropDownListFor
Run the page to see the enum combobox generated, notice that if a value can be null, an empty string can be chosen for the combobox. For example, the create page shows the following:
One ASP.NET Template changes
We updated ASP.NET templates to support Account Confirmation and Password Reset.
We updated the ASP.NET Web API template to support authentication using On Premises Organizational Accounts.
The ASP.NET SPA template now contains authentication that is based on MVC and server side views. The template has a WebAPI controller which can only be accessed by authenticated users.
LESS editor improvements
We added features including nested media queries, named parameter support, support for selector interpolation, support for semicolons as parameter separators, goto definition for @import, goto definition of variables and mixins.
Knockout IntelliSense upgrade
We added a non-standard KnockOut syntax for VS intelliSense, “ko-vs-editor viewModel:” syntax. It can be used to bind to multiple view models on a page using comments in the form:
Code Snippet
1.
2.
3.