I'm currently using Resharper heavily in my work. Recently I've heard that with Visual Studio 2015 there's a new product available called Refactoring Essentials.
My question is that how much of Resharper refactorings are available in Refactoring Essentials? How does it compare to Resharper in performance aspects?
The most important refactorings for me:
Convert to Linq
Extract Base Class
Introduce [Variable, Parameter, Field, Property]
Extract Method
Also I wanted to know if it supports languages other than .NET like JavaScript, TypeScript, CSS, ..
The Refactoring Essentials tools do not work with languages other than C# and VB - they rely on Roslyn, which only works with those languages. See this page for a comparison between VS2015 and ReSharper (note that this is a JetBrains product site). I don't think anyone's done anything similar with Refactoring Essentials.
Refactoring Essentials only support C# and Visual Basic.
As far as your list of features is concerned, none of these are available:
Convert to Linq
Extract Base Class
Introduce parameter
Introduce variable and field are available in a very basic form.
Extract Method is available, although it's not as feature-reach as ReSharper implementation.
There's a review that looks into most frequently used refactorings and some issues that one may encounter with this extension: Review of Refactoring Essentials extension for Visual Studio
Related
I am trying to add support for a different language in Visual Studio 2010. I was hoping to add custom syntax highlighting, and have some sort of basic intellisense work with it. The language I am trying to add is 4Js Genero (a newer version of Informix-4GL). I basically just need support for the .4gl and .per file extensions that are used in Genero/4GL. Does anyone know how to do this, or can point me in the right direction?
It's not really for the faint of heart. Don't underestimate how much work you'll have to put in.
You'll need the Visual Studio 2010 SDK, and then to read (and re-read, and re-read(*)) all about Language Services
The purpose of a language service in Visual Studio is to provide language-specific support for editing source code in the integrated development environment (IDE). You implement a language service as part of a VSPackage.
(*) - unless it all immediately makes sense to you.
This isn't an answer on how to create custom syntax highlighting.
There is an open-source extension for visual studio 2010+ for Genero 4gl language support out of github:
https://github.com/gregfullman/VSGenero/wiki
It should do most of what you're looking for already, and it would certainly make a great starting point for you if you want to do more.
I would like to know (as I've failed so far in finding such a feature in the VS's options),
if there is a feature which allow for scope highlighting same as seen in the BlueJ IDE for java,
here is an example:
Note how the code blocks are all highlighted with color,
when learning java using blueJ i found it to be extremely easy on the eye when looking at code,
and everything felt a lot more organized,
moving to C# and working on MS visual studio, its all text with some highlighting, Class names, keywords etc etc,
but in general it still feel like a black text on a white background and lacking that organized feeling i sorely miss from blueJ,
i noticed there is a similar question here referring to eclipse,
Eclipse IDE Scope Highlighting?
just to be on the safe side, ill ask again referring to Visual studio,
is there such a feature in VS? is there an add-on \ plugin for VS which allows it?
Thanks in advance for your answer.
Microsoft provides a free Productivity Power Tools extension for Visual Studio 2013 and 2015. This has a "Structure Visualizer" feature similar to the CodeRush plugin. Both are more subtle than the BlueJ style, but should make scopes a little clearer.
Productivity Power Tools 2013
Productivity Power Tools 2015
Update
Visual Studio 2017 integrated a version of this into the core application for C#, Visual Basic, F#, and XAML (as Structure Guide Lines). However, C++ still requires an extension.
Look at the DevExpress CodeRush plugin, there is a 30-day trial version.
The function it provides is called "Structural highlighting", and I think its even better than what you want (and its customizable).
CodeRush Express
CodeRush Documentation
I'm using Visual C++ in Visual Studio 2010 Express, and in the past I remember when you use a string object and after the dot (eg: .) all the member functions will show in list, but that's not happening.
string myString = "hello world";
myString.
After typing the dot, all functions that are part of the string class don't show. Where in Visual C++ is the setting to make them show?
The functionality you refer to is called IntelliSense in Microsoft-speak, their version of autocompletion for variable names, functions, and methods.
IntelliSense is not supported in Visual Studio 2010 for C++/CLI projects. You will only get IntelliSense for projects written in native C++ code. This is explained in more detail here on the Visual C++ Team Blog. There is also a bug filed on Microsoft Connect; the official word is this:
Thanks for your feedback. Unfortunately in this release we had to cut the intellisense support for C++/CLI due to time constraints. If you want to get some intellisense like quick info and memberlist on the native classes you can get it by choosing no /clr support in the project properties.
Thank You!
Visual C++ Team
This is unfortunate news for many of us who work with C++/CLI projects, and we aren't left with many options. A question regarding those options has been asked here: What are people replacing the missing C++/CLI Intellisense in VS 2010 with? The summary is people are either going back to VS 2008
(I believe the Express Edition of 2008 is still available for download if you look around), or purchasing third-party software such as Visual Assist X that promises to bring back IntelliSense.
It's worth mentioning, however, that Microsoft does not regard C++/CLI as a "first-class" .NET language. There's little (if any) reason to start new projects using the language. It's designed for interop purposes between native C++ and managed C# applications. If you want to write C++, you should target the native Windows API (create a new Win32 project in VS). If you want to write managed .NET code, it is highly recommended that you use C# instead (that's a different version of Express that must be downloaded separately). The syntax is very similar between C++ and C#, but you will still have to learn the .NET Framework and idioms. Both native C++ projects and managed C# projects have very much improved IntelliSense support in Visual Studio 2010, so you're guaranteed to be much happier with either of those.
Developing Java with Eclipse, it's easy to move variables from one class to another, and have the references be updated. (So if you move size from being a class variable to a class named Constants, every reference to size in the original class will be replaced by Constants.size automatically.)
Is there a way to do this in C# XNA Visual Studio 2010?
The Devexpress RefactorPro! plugin has similar refactorings (though not I don't think that exact one). I think they're even all available in the free version. If you want a specific one that's not available though you can check the free DxCore plugins page or develop one yourself. It's not all that hard.
All the links are on the DxCore community plugins page.
Oh but, to answer your question very specifically no, I have never heard of that exact refactoring being available anywhere - it's not generally seen as CSharp-y.
Move variable is not one of the refactoring operations that is supported by C# out of the box in Visual Studio 2010 (or 2008 / 2005 for that matter). In order to get that kind of operation you will need to use a 3rd party plugin such as Resharper or DevExpress`s RefactorPro.
Anybody know any plugin for Visual Studio 2008 that has the ability to "Structural Highlighting" and Syntax support for Delphi-Prism.
Currently use Castalia and CnPack, but just work on Rad Studio.
I've also used Codekana, but does not support the syntax of Delphi Prism.
Bye.
Given the comments, the answer probably is 'there is not yet structural syntax highlighting for Delphi Prism' :-)
You might also want to contact the people at DevExpress, or hook the people at DevExpress up with the people at RemObjects.
RemObjects is the company that developed the whole Delphi Prism language and Visual Studio IDE integration: that product is called Oxygene.
CodeRush does structural syntax highlighting (and much more, even in their free edition). It used to be available for Delphi, but is now Visual Studio only, and works for the C# and VB.NET personalities.
Mark Miller is the guy behind CodeRush (he started it in the Delphi world).
Since CodeRush is based on DxCore, DxCore does C#, VB.NET and ASPX, and DxCore is public, so you could roll your own structural syntax highlighting :-)
Julian Bucknall (CTO of DevExpress) already hinted on support for Delphi Prism in their products and elaborated on that.
Olaf Monien wrote about using DxCore to enable Sync Edit for Delphi Prism.
Personally I have not used Codekana yet, mainly because I rely on macros and refactoring a lot. At first sight Codekana does not support those, but I'd love to be corrected on that :-)
There is no product that provides structural highlighting with syntax support for Delphi Prism under VS.
Excellent question, which highlights an available development niche.
hmmm, it's not quite the same, but i use smartoutline in visual studio 2008. It's mainly for collapsing specified regions of code, but it also marks up the structures in the margin. You have to specify the regions yourself, but once done it makes code a lot easier to read