As with every new release, Microsoft has crammed in a host of new features, which they hope will make us developers lives better and get us churning out software at a higher rate of knots. Of course, I can’t list every single new feature here, but I will try to at least give you an overview of some of my personal highlights… However, for the full Release Notes, see https://www.visualstudio.com/en-us/news/releasenotes/vs2017-relnotes
Hint: If you’re only interested in the new features, simply do a search for “New in RC”!
#1 – Go To Menu:
Navigating your way around a large code base can be quite a chore. To make your job easier, VS2017 has added a new Go To Menu. This new menu effectively wraps up links with keyboard shortcuts to a new Dialog (See #2 below!), allowing you to search for a keyword in;
- All – Ctrl+T
- Files – Ctrl+1, Ctrl+F
- Types – Ctrl+1, Ctrl+T
- Members – Ctrl+1, Ctrl+M
- Symbols – Ctrl+1, Ctrl+S
#2 – Go To All Dialog:
The new Go To All Dialog will save you heaps of time trying to find that method or file that you know the name of, but can’t seem to remember where exactly it is.
You can either leave this dialog set to search for all, or you can narrow the selection to;
- Line –
- Files –
- Types –
- Symbols –
- Members –
Each match that’s found while you’re typing will automatically open up in the File Preview area.
#3 – Filtered IntelliSense:
Quite often, the list of results for any given IntelliSense list can be huge. With the addition of IntelliSense Filtering, it should now be simpler to drill down to the results you’re specially interested in.
You can filter the IntelliSense list by;
- Locals and Parameters –
- Constants –
- Properties –
- Fields –
- Methods –
- Interfaces –
- Classes –
- Modules –
- Structures –
- Enums –
- Namespaces –
- Keywords –
#4 – Predictive IntelliSense:
The IntelliSense list is now more careful about selecting which item you are actually intending to type, by predicting and selecting the most likely item you would like based on your current context.
#5 – Find All References:
The Find All References results have had a complete makeover, resulting in a far more useable experience all round. The results are now colour-coded and grouped, also allowing you to search and filter the results to find exactly the matches you’re interested in.
#6 – Run-To-Click:
A nice improvement to Debugging comes in the form of Run-To-Click. Now, instead of needing to right click and select Run To Cursor, simply hovering over any subsequent line while in a paused state will show the new Run-To-Click icon – . Hitting this will automatically run the code on to this position and stop again.
#7 – Run-To-Click Perf Tips:
Like Visual Studio 2015, Performance Tips are automatically shown once execution is completed. These are also shown for the new Run-To-Click feature, indicating how long has elapsed since the previous breakpoint was hit – .
As always clicking the Performance ToolTip will open the Diagnostics panel with all the relevant information.
#8 – Live Unit Testing:
This is one of my favourite new features, but sadly right now it’s only available in the Enterprise Edition… Sorry Pro and Community Users!
Live Unit Testing visualises Unit Test and Code Coverage results live in the editor. Turning this feature on is as simple as going to Test>Live Unit Testing>Start.
The code will be analysed, any unit tests invoked, and the results shown along the margin.
Another feature parcelled along with Live Unit Testing is the ability to scaffold Unit Tests simply by right clicking on a function name and selecting “Create Unit Tests”. Visual Studio will then offer a set of options and once you’re happy, it’ll go ahead and scaffold out a basic unit test for the function and automagically run it, showing the result right there in the Editor.
#9 – Visual Studio 2017 is up to 4x Faster than Visual Studio 2015.
Thanks to a whole raft of optimizations and loading mechanisms, Visual Studio can be up to 4x Faster than Visual Studio 2015 Update 3 at Starting Up, Loading Projects and Building… All of this while actually consuming less memory!
Visual Studio 2017 is roughly 3x faster to open from a cold start and 2 to 4x faster at loading solutions.
At start up VS2015 scans installed components, initialises default settings and initialises caches. Whereas, VS2017 either defers or eliminates a lot of those actions, resulting in a far faster start up time. Further, VS2017 has a feature called “Light Weight Solution Load”, which only loads individual projects when you actually need them… Making VS2017 usable in roughly half the time of VS2015.
#10 – Open Folder:
Sometimes, whether for simplicity or speed, all you want to do is open a collection of files, rather than a whole solution full of projects. VS2017 has added the functionality, which is easily accessed either from the “Open Folder” link on the welcome page, or using the “File>Folder” menu item.
#11 – XAML Rename:
Some useful editor features normally only found in the code editor have made it onto the XAML editor, the first of which is Rename. Just like the code editor counterpart, this new feature allows multiple namespaces and items to be renamed simultaneously.
#12 – XAML Edit and Continue:
Edit and continue has been around in Visual Studio for a good long time, and is obviously a well-loved feature, allowing for a very quick development cycle.
VS2017 now expands this functionality to allow for Front End Developers to make modifications to the XAML layout of WPF and UWP apps while the application is running, with modifications being reflected immediately in the running application.
#13 – XAML Namespace Completion:
Another feature migrated across from the code editor is the ability to Resolve References in XAML. Namespace completion simplifies adding controls in other namespaces to XAML. Simply type the name of the control, and using the lightbulb click the prompt to generate and insert the missing Namespace.
#14 – XAML Filtered and Predictive IntelliSense:
Along with the Code Editor, the XAML Editor also inherited the new Filtered and Predictive IntelliSense features, which will make adding XAML properties quicker and more intuitive.
Thanks to John Montgomery and Jon Chu, who’s videos I use to create the GIFs used in this post. Their original videos can be found here;
John Montgomery – What’s New in Visual Studio 2017 – https://channel9.msdn.com/Events/Connect/2016/159
Jon Chu – What’s new for Desktop Developers in Visual Studio 2017 – https://channel9.msdn.com/Events/Connect/2016/117
I help various companies in a range of sectors move their companies forward with bespoke applications and systems.
Website / Blog: http://www.pjgcreations.co.uk