What`s New In Visual Studio 2017 RC

Visual Studio 2017

0 ( 0 votes) | 1620

In this article, we will talk about some of the new features or enhancements in existing features in Visual Studio 2017 RC. So let`s get started.

Introduction:

Microsoft announced Visual Studio 2017 RC (previously known as Visual Studio “15”) at Microsoft Connect (); 2016. There are lots of new features included in Visual Studio 2017 RC. To download Visual Studio 2017 RC click here. So let`s go through some of the features.

Improvements In Find All References Window:

In Visual Studio 2015, if we right click on any method and select Find All References (Shift+F12) option,  then it was just showing the list of all files where that method is referenced as shown below (F:1).

Find All References in Visual Studio 2015

Result for the same operation in Visual Studio 2017 RC is as shown below (F: 2)

Find All References in Visual Studio 2017 RC 1

As we can see in above image, there is a lot of difference. (Following results are applicable only for C#, VB and C++.)

1. Results are colorized.

2. We can group the results. Currently in above image results are group by Project and then the definition of the method. Available group by options are as shown below (F: 3)

Find All References In Visual Studio 2017 RC Group By

3. Filter the references result. For example search the references in Entire Solution, Current Document, and Current Project etc as shown below (F: 4).

Find All References in Visual Studio 2017 RC Filter By Option

4. If we hover over the result, a tooltip will be displayed with source code (for C# and VB only) as shown below (F: 5).

Find All References Tool-Tip in Visual Studio 2017 RC

Code Navigation:

Go To (Ctrl+, or Ctrl +T) allows us to find and navigate to files quickly. In Visual Studio 2015, if we use shortcut keys for Go To and try to search for any file, we get the following result (F: 6).

Code Navigation In Visual Studio 2015

If we perform the same operation in Visual Studio 2017 RC, then the result is as shown below (F: 7)

Code Navigation In Visual Studio 2017 RC

The main improvement in Go To is the filtration setting which is added at the bottom of the windows as highlighted in above image. It allows us to filter the result based on various options like search only for Files or Types or Symbols or Members in current document or in entire solution.

We can also go to any line number in current document using the ": 162" syntax in Go To window, where 162 is the line number in current document. When user type the line number it highlight the line number in current document and also display the line number range as shown below (F: 8).

Go To Line Number

Improvements In IntelliSense:

IntelliSense is best friend of every .Net developer using Visual Studio IDE. In Visual Studio 2015, while typing the code if we hit Ctrl+Space, IntelliSense window will popup to display all the available properties, methods, extension methods available as shown below (F: 9)

Visual Studio 2015 IntelliSense

If we do the same operation in Visual Studio 2017 RC, then the result is as shown below (F: 10)

Visual Studio 2017 IntelliSense

As we can see in above image, new filter functionality is added at the bottom which allows us to filter the IntelliSense based on Properties, Methods, and Extensions Methods available in that context. It simplifies the choice of option from a long list of suggestions.

Roaming Extension Manager:

This new feature in Visual Studio 2017 allows us to sync our favorite extensions across our all development environments. Means suppose I have installed some of my favorite extensions in Visual Studio installed on one PC. I would like to have these extensions installed on my each and every machine where Visual studio is installed. To do this, I can enable Roaming of those extensions, so that when I sign in to my Visual Studio on another machine those extensions will get installed automatically for me. To see the list of Roaming extensions, go to Tools=> Extensions And Updates and select Roaming Extension Manager option from left menu as shown below (F: 11)

Visual Studio 2017 RC Roaming Extension Manager

To stop Roaming of an extension, we can click on Stop Roaming button as shown in above image. Cloud icon with green tick mark denotes that extension is currently Roamed and Installed. Only cloud icon denotes that extension is currently Roamed but not installed and green tick mark icon denotes that extension is installed but not Roamed.

Debugger Support For Client Side Debugging In Chrome:

This is one of my favorite feature. Previously we were using chrome developer tools to debug the client side scripts. Now in Visual Studio 2017 RC, we can add a breakpoint and debug scripts in Visual Studio like we do for server side code as shown below (F: 12).

Script Debugging Using Visual Studio 2017 RC In Chrome

As we can see in above image, break point is getting hit in java script file and we can inspect the response object in Watch window.

New Exception Helper:

Dealing with exception is a common developer problem no matter what technology we use. Previously in Visual Studio 2015 if there is any unhandled exception occurs specifically Null Reference exception, then it was difficult to know which variable is null from the exception window as shown below (F: 13)

Visual Studio 2015 Unhandle Exception

With the new exception helper introduced in Visual Studio 2017 RC, we will able to know exactly which variable is null as shown below (F: 14)

Visual Studio 2017 RC Exception Helper

As we can see in above image customer variable is null. Also previously we need to drill down the exception details to get information about the exception. Now with new exception helper, inner exception details will be shown in exception window when the code breaks.

Lightweight Solution Load:

As the feature name implies it enable the faster loading of large solutions. This feature can be enabled on a solution by solution basis or globally in IDE. To enable this feature for particular solution, select the solution and open the Properties Window (F4) as shown below (F: 15)

Visual Studio 2017 RC Lightweight Solution Load For One Solution

To enable this feature globally, go to Tools => Options, Project And Solutions => General and check the “Lightweight Solution Load” setting at the bottom of the window as shown below (F: 16).

Visual Studio 2017 RC Lightweight Solution Load Globally

Connecting To Services Using Service Capabilities:

A new node is added called “Service Capabilities” in solution explorer for Web and Mobile project types as shown below (F: 16).

Visual Studio 2017 RC Service Capabilities

Double clicking on it will open up a full tab as shown below (F: 17)

Microsoft Popular Services

As we can see in above image we can add capabilities like Application Insights, Azure Storage, Office 365 API, Azure Active Directory Authentication etc. For example if I click on Azure Storage, then a new window will popup and fetch the Azure Storage account details from my Azure subscription if any or I can create a new Azure Storage account from the same windows and continue.

Open Folder:

This new feature added in Visual Studio 2017 RC allows us to open the code bases which does not have the solution files. This feature was not available in Visual Studio 2015.

Live Unit Testing:

This is a new feature introduced in Visual Studio 2017 RC and available only in Enterprise edition.  It shows the test result and code coverage information in editor while we are coding. It`s available only for C# and VB language. To get more information about this feature click here.

Conclusion:

In this article, we talked about new features or enhancement in new Visual Studio 2017 RC. I hope you enjoyed reading the article.

Happy Coding!

Manoj Kulkarni - Dotnetcontext

Manoj Kulkarni

I am programmer, passionate blogger and foodie. I live in Nashik. I am a .Net developer. I like to learn new technologies to keep my self-updated and share that knowledge with my blog readers, friends and colleague.

2 Comments


CathyRoberson - Dotnetcontext

CathyRobersonTuesday, December 27, 2016 2:45 AM

To be honest. I haven't seen a good post like this in a year now. And seeing this post now, ahh, it really pleasures me. Thanks a lot for this post.

Manoj Kulkarni - Dotnetcontext

Manoj KulkarniTuesday, December 27, 2016 2:47 AM

Thank you for the feedback. Glad you liked it.

Add a new comment