Fixing Coding Mistakes On The Fly in Visual Studio 2015

Sign in to queue

Description

In this episode, Robert is joined by Mark Wilson Thomas, who shows us how Visual Studio 2015 helps you find and eliminate common coding issues as you code. You may have seen demos where light bulbs appear in the Visual Studio editor along with advice on how to fix the issue. Mark is on the team that created the infrastructure that makes that possible and he provides a good understanding of not only how and why that was added to Visual Studio but also how you can take advantage of it to fix coding issues as you go.

 

Embed

Download

Download this episode

The Discussion

  • User profile image
    Gary Esser

    Does any of this apply to C++? Somehow, I doubt it. I had to watch 2:47 before mention was made of C# and VB, and I guessed that my language was not included and decided to stop wasting my time. It sure would be nice if content was labeled in a way that would allow me to determine quickly whether it is relevant to me. "Visual Studio 2015" is not enough info.

  • User profile image
    Gary Esser

    Okay, I watched the next 30 seconds and mention was made that there is some support in C++. I apologize. I still think the suggestion about better content labels has merit.

  • User profile image
    pmackay

    there's no F# too... sad... well, next version maybe...

  • User profile image
    MarkWT

    Hi Gary

    C++ has made some actions available via the light bulb in Visual Studio 2015 - you can see some examples in my colleague Gabriel Ha's post https://channel9.msdn.com/events/Build/2015/2-70 around 19:30 into the video which shows how it is used in conjunction with Peek. I'm sure the C++ would love to hear your feedback there on the sort of capabilities that would be most useful to you.

    Thanks

    Mark

  • User profile image
    saurabhjuna​nkar

    Hi Mark

    This in the Professional version ?

     

    Thanks

    Maddy

     

  • User profile image
    MarkWT

    @saurabhjunankar:yes, light bulb and error list features are in Professional, and also in Community . See full listing of features

  • User profile image
    Piotr

    Did any of you guys hear about ReSharper? Cause it looks to me like you are mostly copying features from R# plus doing some very obvious stuff. There's just nothing mind blowing to me there in what you showed.
    Maybe it's because I've been using R# for so many years that I got used to having those features years around (R# had those many years ago and it is years ahead of what MS is bringing to VS2015).
    I probably sound like salesman, but I'm just a regular sad dev that is delighted with what JetBrains does and at the same time disappointed with what MS offers in bare bones VS. Basically I'd refuse to work with VS without R# and pretty sure I'd move to another platform/language.
    To sum up I think what you are MS guys doing is good but it is to little and very much to late to be considered as something significant and that just makes me sad, cause .NET/C# are great but the tooling and workflow currently does not compare to what other platforms offer.

  • User profile image
    MrDoom​Bringer

    @Piotr, under the hood ReSharper is a compiler that produces a code map. Roslyn, as the new C#/VB compiler, also produces a code map. Based on this code map, regardless of how it is generated, we can infer new things and provide feedback to people as to how their code will work (or won't work, as the video shows). 

    R# is very powerful, but the system for adding additional custom code checking is clunky and not straightforward. With VS2015 the VS team has introduced the same concepts that make R# great baked right into the IDE, and they've made it extensible. It's possible to write your own Roslyn analyzers and distribute them via NuGet. See the StyleCop analyzer package here: https://github.com/DotNetAnalyzers/StyleCopAnalyzers

    Likely there will be reason to continue using ReSharper for some time yet, but I'm sure we'll see wider development and sharing of these analyzers amongst the community. It's a very exciting time to be a .NET dev!

  • User profile image
    smallmoved

    希望能做国际化,方便大家沟通,
    Want to do international,

  • User profile image
    smallmoved

    微软自己的人都不习惯用自己的产品么,难道surface pro 3不能做开发?
    Microsoft's own people are not accustomed to using their own products, pro surface 3 can not do the development?

  • User profile image
    Edward

    What happened to Alt+Shift+F10? Was it replaced by Ctrl+.?

Add Your 2 Cents