i want to convert my window application, that i developed in VS2005 using C#, as an Add in for Visual Studio 2005. How can i do it.?
There is a nice quick start tutorial in here : http://www.codeproject.com/KB/macros/LineCounterAddin.aspx
It was enough for me to start.
You could try looking at MSDN or books, but you might find the VS2005 information hidden behind the VS2008 stuff...
I wanted to create one myself, but i didn't have yet time to process the information required:
"How Do I?" Visual Studio extensibility videos
Article series detailing extending visual studio from the beginning:
LearnVSXNow!
Microsofts's VSX
Home on Code Gallery
Building your own Visual Studio Source Code Outliner extension (and Quan's whole blog)
Overall I'd recommend waiting for Visual Studio 2010 (or start working with the fresh beta 1), because there will be many changes and many more possibilities on extending Visual Studio. (Think WPF.) The code gallery I linked already contains content regarding to this.
Related
I'm trying to make a Visual Studio extension with a custom editor in VS 15 RC and I've followed the MSDN tutorials, but the VSPackage option does not show under extensibility. Does anyone know what I'm missing or a workaround for this?
Update: This appears - from what I've heard from on MSDN - to be a issue with the VS 15 RC SDK. Here is a link to the bug report please vote.
You need Visual Studio SDK to build your own extension.
You can have your own extension designated to your preferred VS editor by clicking right button and Open With...-> on Visual Studio Solution Explorer.
If you wish to have a different text editor beside VS ones, then do the same on the Windows Explorer.
EDIT:
Since Ron Beyer claims that the link I provided is inappropriate because of the
version difference(my intended purpose was a link to the latest page that describes it though),
here is the page where you can download Visual Studio 2015 RC SDK.
https://www.visualstudio.com/en-us/downloads/visual-studio-2015-downloads-vs.aspx
I am not looking to do anything fancy just create a bucket for our internal company Visual Studio projects etc.
I have been through the following resources and it seems the codeplex projects have the same behavior as my tutorial walk throughs which tells me I don't understand / know what to look for / learn exactly.
Said behavior is that when my code or the codeplex code compiles and runs with no issues but I don't see the new language show up??? By show up I am expecting to see it in the New Project dialog under templates.
I started here:
http://msdn.microsoft.com/en-us/library/bb165744.aspx
and though not the best tutorial I feel I got everything correct. It compiles and runs but my new "Language" doesn't show.
So I did some more searching perhaps another tutorial might fill in some gaps I missed and I watched this video for an hour.
http://channel9.msdn.com/Blogs/VSIPMarketing/VSX212-Adding-a-Language-Service-into-Visual-Studio-2010
It's for 2010 but felt 2013 and 2010 close enough that it might help....and while I did learn quite a bit it didn't give me what I was expecting.
Another Google result was this SO post (How to create a new language for use in Visual Studio) from which I downloaded OOK from codeplex. Updated references, upgraded from 2010 to 2013 etc.
It compiles and runs but again my language is not "showing"....which is the behavior I had in my tutorial guided solution.
So what am I doing wrong??
All I really want is a language bucket where we can put our internal snippets, customized project templates etc. The c# editor, intellisense, syntax highlighting, etc. are just fine so don't need to extend those at this point.
If someone could please point me in the right direction I would be grateful.
Thank You
Does anyone know if there a way to tap into visual studios diff libraries to extend the functionality of my projects?
I know that there are open source solutions for file diffing that I will consider if I cant find an adequate Microsoft implementation of it. Visual Studio comes with nice diff feature that it uses to compare source files.
I want to use code that is MS licensed. It seems that visual studio fulfills that requirement and has the feature I need.
It seems like this would be a useful extension library that maybe .NET should have in it, or already does?
Any ideas?
The Visual Studio diff window (new to Visual Studio 2012) uses the IDifferenceBufferFactoryService to create the IDifferenceBuffer it displays. From there it uses the ITextDifferencingSelectorService to get the appropriate ITextDifferencingService for each side. From there you'll have to do a good bit of reading to understand the API. :)
If you are creating a Visual Studio 2012 extension, the API you are interested is available in the Microsoft.VisualStudio.Text.Differencing namespace.
A major part of our work is creating and manipulating certain XML files, for which have a custom editor. The editor is starting to get creaky and we are looking at building a replacement. Since VS2010 has recently arrived, ostensibly with an improved add-in architecture (MEF?), I am interested in the possibility of building the editor as a custom editor within Visual Studio.
It would have to appear in the same way as the code editor or the Designer - a tab item, of which there can be many open at once, containing the GUI we use to edit the files. It would integrate with VS's Edit menu. It could use the output window to display messages. It would appear the same as any other editor within Visual Studio.
Right now, I am looking for examples of add-ins that work in a similar way - ideally with source code - to see whether this model would suit our requirements. I am also looking for any documentation or tutorials relevant to creating a VS2010 add-in, or information about VS2008 add-ins if this is still relevant.
Any input is welcome. Thanks!
You want to look at the Managed Extensibility Framework for VS 2010. Since 2010 is written in .net you can create add on components using it.
Code editor extension for VS 2010.
Working with MEF
Custom Editor Extensions
Update:
Since someone asked in a comment, I thought I would post this link on creating add ons for vs 2008: http://msdn.microsoft.com/en-us/vstudio/bb968855.aspx
I'm looking into Productivity tools for developing in C# / Visual Studio 2008 (pr0) and developing web apps (not using MVC).
Anything from favourite visual studio shortcuts to external tools and plug-ins.
Ctrl+. is one of my favorites. It adds a Using statement for the current class if you don't already have it.
For example if you have this:
Regex
And you hit Ctrl+.. Visual Studio will add
using System.Text.RegularExpressions;
to the top of your file.
I also like Code Rush and Refactor Pro from DevExpress.
A very interesting one that was just announced is Telerik's JustCode. It's basically a new refactoring tool (such as Resharper and CodeRush, also very good productivity improvement tools), but also handles Javascript in web projects.
Tools like these can dramatically improve the amount you can get done in a short amount of time.
ANTS Profiler from Red Gate helped our company find a lot of bottlenecks in our C# code.
Reflector from Red Gate PowerCommands visual studio add-in any form of Grep
We've just started using GhostDoc which is pretty useful for quickly generating outlines of comments especially when you're generating your documentation from your XML comments. It's definitely saved me some time.
its not a tool but a big reference chart - you can print it out and hang it on at your work area, to refer quick key bindings http://www.microsoft.com/en-us/download/details.aspx?id=7162