visual-studio-addins

Within a Visual Studio 2008 Add-In, how can I tell which interfaces a class' property implements?

In a Visual Studio Add-In, I'm enumerating over the members of a class in the current source file. When I encounter a property (e.g. CodeElement.Kind == vsCMElement.vsCMElementProperty) I cast that CodeElement to a CodeProperty and I can see the property's name and type. What I'm having a problem with is getting a list of the propert...

How to create a visual studio plugin that controls winamp?

I often listen to music while I code. Switching songs while in the middle of something damages your productivity because you have to move to another window. How would you implement such a plug in and in what language would I be more comfortable with if I want to interact with the winamp sdk? I'm a C++ programmer but I can get by with C# ...

Get methods covered by a unit test

Is is possible to do the following from a Visual Studio 2010 plugin? If yes, how? Run all unittests in solution (with code coverage enabled) Wait for all tests to complete For successfully completed tests: Determine which methods were called during each test (directly by the test or indirectly by the tested methods). And store their na...

Any Addin for Visual Studio 2008 which would sort the imports?

I have seen plugins for VS 2005 and also for C# environment in VS2008 but not able to find for VB.NET environment in VS 2008.I want it to sort for each file, is there any addin for this? ...

VSTS2010 Addin Development - Check-in hooks

Hi, I've been tipping my toes in Visual Studio Add-In development. I've read some of the tutorials online, and studied some of the sample code provided. Now I actually want to perform custom actions before/after a TFS check-in command is called by the user, but I can't seem to figure out where I can find a hook to start this. Is there s...

How to add an existing file to a project in VS2008 Add-in?

I'm trying to create an add-in for VS2008 to automate the unit tests. The test classes are located in a different project of the same solution. After the test class file is generated, I want to add it to that project automatically and make it the active document. I could easily locate the test project, and I also found that: testPro...

Visual Studio add-in to quickly test a code snippet

One thing I really love about languages such as Python is that if you have a piece of code you'd like to try out, you can just open the interactive shell and do it in seconds. Is there a Visual Studio add-in that does the same for C#? Basically what I'm looking for is something that opens up a window or tab with a text editor (preferab...

How do you develop Visual Studio Add-Ins?

I have a vague idea Visual Studio allows you to run a second sandboxed instance where the add-in is being in fact loaded. That'd allow you to debug your add-in code and such. Is this effectively possible? How would I go about doing that? I'm currently using a single instance of Visual Studio. I'm having the problem that as I load and r...

Addin to Visual Studio for visualizing a selected json string in the editor

Hi! I've got a lot of xml files, and embedded in some elements there are json serialized objects. They are quite difficult to read and modify. So question is: Are there any Visual Studio addins availible that can take selected json-text in the editor, and visualize it (and maybe even allow for editing)? if not, if I must build it - ar...

Is there a way in VS2008 (c#) to see all the possible exception types that can originate from a method call or even for an entire try-catch block?

Is there a way in VS2008 IDE for c# to see all the possible exception types that can possibly originate from a method call or even for an entire try-catch block? I know that intellisense or the object browser tells me this method can throw these types of exceptions but is there another way than using the object browser everytime? Somet...

Do you have ideas for a workaround for this Known bug in Visual Studio 2010's addIn model ?

When developing AddIns for Visual Studio 2010 the following line fails: CommandBarEvents handler = (EnvDTE.CommandBarEvents)m_VSStudio.DTE.Events.get_CommandBarEvents(popup); Update: Forgot to tell that m_VSStudio is of the type DTE2 Where popup is of the type CommandBarPopup (for the type CommandBarControl it works though) The line...

building xbuild into visual studio addin

im looking for a way to implement a addin that can convert a C# solution into a mono compiled exe, so i can use it on a linux and mac environment that have the mono framework installed. ...

Creating a 'Custom Designer' Visual Studio 2010 Add-in

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...

Is there any addin for Visual Studio to synchronize files?

I want to know if there is any addin to synchronize files with a remote server (like a file upload (FTP) for deployment). (in a Website) Something that can identify the files I change and check them for a later upload. Is there an addin for that? ...

Does Visual Studio 2010 have SQL syntax highlighting for .sql files?

Basically the title is my question. I have a project in one of my solutions just for storing development assets like DB creation scripts and the like. While I normally use SSMS for developing and running these scripts, I would like to be able to open them in Visual Studio and see the same syntax highlighting that's in SSMS. It's just a...

Visual Studio Addin "Exclude From Build" Property

I am currently trying to create an addin for Visual Studio 2008 that will list all files which are not excluded from the current build configuration. I currently have test C++ console application that has 10 files, 2 of which are "Excluded From Build". This is a property that will allow a specific file to be excluded from a specific co...

Visual Studio 2010 extension get selected text

I'm writing my own extension. I've created a toolbar button. The template I used was "Visual Studio Package" and there was an option during the wizard to create a command button (or something like that) So the button shows up, but I can't work out how to get the current document or the selected text within the document. Any help would ...

Force enconding of all files within a Visual Studio solution directly from Visual Studio

Any way to convert the encoding of all the files within a VS solution (*.sln) directly inside Visual Studio? (I am using 2008). Any Add-in for this effect? ...

How to reference assemblies not in the GAC with Visual Studio 2010 Extension/Addin?

I'm trying to write a Visual Studio 2010 Extension to show an IronPython shell for debugging C# projects. So obviously I have a reference to IronPython.dll (and a bunch of others). I'm referencing IronPython 2.0.1 here. My project compiles fine. When I debug it, a new instance of VS is started and all. But when I run the addin command, ...

How to block on a OpenFile in a Visual Studio addin

I have a Visual Studio 2008 addin that when I press a certain hotkey, it opens a specific file (different based on the context of the hotkey) and then searches that file for a specific string (again, context dependent.) Most of the time this works flawlessly, but sometimes if the file it's opening is too big, the search will fail. Here ...