简体   繁体   中英

JDT equivalent for C#/Visual Studio

I'm looking for an equivalent to the JDT in Visual Studio for C#. Generally, I want to extend Visual Studio with a plugin to analyze C# source code. So what should I look for?

You are looking for the Visual Studio SDK , specifically the Visual Studio Integration SDK section. You may find references to Visual Studio Extensibility (VSX) - they are the same thing.

The learning site for VSX has a few links to get you started, especially in the " Getting Started " section. You can find detailed coverage in the documentation .

EDIT:

If you are looking for a plugin to analyze your code and don't mind buying it, Resharper is the best option. Resharper has its own SDK that allows you to create plugins for it.

If you want to create your own code analysis plugin, you will have to do a bit of work. VS doesn't include any parsing or analysis support. This will come with Project Roslyn, hopefully soon after .NET 4.5 RTMs. Right now it's in CTP and may well be cancelled.

There are some tools that can help with analysis. ANTLR has a .NET distribution .Net that targets C#. Mono.Cecil is a Mono library that inspects IL code and is the basis of almost all .NET decompilers.

I am not really sure about what you are looking for but ReSharper will help you in many ways.

Taken from their website:

ReSharper is a renowned productivity tool that makes Microsoft Visual Studio a much better IDE. Thousands of .NET developers worldwide wonder how they've ever lived without ReSharper's code inspections, automated refactorings, blazing fast navigation, and coding assistance.

And here are some words about the analysis cabapilities:

On-the-fly code quality analysis in C#, VB.NET, XAML, ASP.NET, ASP.NET MVC, JavaScript, CSS, and XML. ReSharper will tell you right away if your solution contains errors or code that can be improved.

I'm an avid Java developer and I use IntelliJ IDEA from JetBrains who also has developed the ReSharper. ReSharper has taken a lot of goodies from IntelliJ and it is really fantastic to use when you are using VS like I am at the moment.

You probably can check out ReSharper like @maba suggested. But ReSharper is not free.

If you are looking for something free, you have several choices,

Based on them you can write Visual Studio addon that provides similar functionalities to ReSharper or JDT.

NRefactory 5 and Roslyn are both in active development phase, so both of them are not yet ready for serious usage.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM