visual-studio-addins

Can I suppress selected input before the application's main loop?

As part of my Visual Studio utilities add-in SamTools, I have a mouse input routine that catches Ctrl+MouseWheel and sends a pageup/pagedown command to the active text window. Visual Studio 2010 added a new "feature" that uses that gesture for zoom in/out (barf). Currently, my add-in does send the scrolling command, but Visual Studio sti...

Capture window close event

I want to capture events that close editor window (tab) in Visual Studio 2008 IDE. When I use dte2.Application.Events.get_CommandEvents(null, 0).BeforeExecute I successfully captured such events: File.Close File.CloseAllButThis File.Exit Window.CloseDocumentWindow and others. If code in window is not acceptable, I stop the event (C...

Visual Studio Add in to Add Tracing

I was looking to write/get a visual studio addin. I want to be able to write descriptive log calls at the top and bottom of a function. like this log.debug("TheClass.TheMethod(string TheStringParam ="+TheStringParam+") - in"); log.debug("TheClass.TheMethod(string TheStringParam ="+TheStringParam+") - out"); Is there an adin that do...

What is this dashed line called that aligns function blocks in my IDE?

The SPE IDE that I use for my Python code uses this "visual cue" that looks like a vertical dashed line for alignment of (what I would call) function blocks. How can I get this option in Visual Studio 2008? Here is what it looks like: ...

How do you diagnose and fix visual studio add-ins that do not load?

From time to time I run into this problem with Visual studio 2008 (and 2005). An add-in is installed (3rd party or custom). The path to these add-ins is in the visual studio settings. When I start visual studio and load a project the add-ins are not installed and do not show-up in the list provided by the add-in manager. I noticed thi...

What do I need to create an "Office" project in Visual Studio 2008?

I have Office 2007 installed(with .NET support checked everywhere) and VS 2008(with all updates). My problem is that there is no Office category when creating a new project. What else do I need to create an "Office" project? Office is just not there.... ...

Visual Studio: Profiles for addins

I would like to be able to switch between using Visual Studio with C#-addins (Resharper, TestDriven.Net and VisualSVN) and C++-addins (Visual Assist X and VisualSVN). I have found that Resharper and Visual Assist X does not coexist very well and I would like an easy way to change between them. Anyone know how to do that? If I can have d...

How can I get a list of window types similar to Tools/Options/Environment/Keyboard?

When changing keyboard shortcuts in Visual Studio (2008) you can specify in which window types the shortcut is active, e.g. Global, Text Editor, ... How can I retrieve that list programmatically? EnvDTE.Window objects have a Type property but of course that Enum is static and does not include windows from third-party packages and add-i...

Add a Right-Click Menu Item in Visual Studio using C#?

How to write an add-in that allows me to right click on the files hierachy tree to do something that will display something? This is exactly what I want (2nd part of the video), but it is in VB, I need C# version. I know little about Visual Studio Add-in and I don't know VB, so I can't use the codes there:( http://msdn.microsoft.com/en-...

undecorate function names with visual studio sdk

To undecorate mangled C++ names that Visual Studio generates, you can use undname.exe. But what if you want to avoid the overhead of creating a full-blown process every time you need undecoration? Is there any equivalent functionality in the Visual Studio SDK (should be supported in VS2005)? ...

installation path for visual studio 2008 addin in XP

I tried to google for the installation path for visual studio 2008 addin in XP but could not find a proper answer. Can someone help me on this the addin needs to be for all users for the machine ...

Visual Studio Addin for VS2008

I was looking at one of the webcasts and found that class name had a small class diagram image beside it and all methods had lines, and all if or for loops had highligted lines so it makes them very clear where they end. Where can I get this addin from....? ...

How to listen Visual Studio code model events ?

I am implementing Visual Studio Add-in and I want my service to be notified when class or method is removed in C# editor. Is there any samples showing how to do that ? ...

Is there a free Visual studio add-on to generate try/catch blocks from a method that documents exceptions ?

Is there a free Visual studio add-on to automatically generate try/catch blocks from a method that documents exceptions ? ...

Visual Studio add-on to tag code segments?

Hi, I wonder if there exists any add-on for VS that can substitute/tag some lines of code with a descriptive text of my choice ? Ideally a function like the one below : bool CreateReportFiles(LPCTSTR fn_neighbours, ULONG nItems, ULONG* items) { // Read from file CFile cf_neighbours; if (!cf_neighbours.Open(fn_neighbours, CF...

How can I access the currently opened project's types(classes) from a Visual Studio add-in?

How can I access the currently opened project's types(classes) from a Visual Studio add-in(be able to create instances of those classes within the add-in)? Is this possible through reflection? Or maybe dynamically include the project's assembly as a reference? What I'd like to have in the end is a list of all types accessible from the p...

Can't see changes in Visual Studio Add-in after rebuild

I am making an Add in for Visual Studio. Every time a change something in the code or design, I have to restart Visual Studio in order to see changes from Tools -> My_Add_In. I try to rebuild a project and still can't see changes without restarting. Is it a way to run my add in without restarting VS? ...

Is there a "multimedia comments" add-in for Visual Studio?

I mean, an add-in that allows me to associate image and sound files with a comment in the middle of the code. Does this exist already? That would be great to help people to understand other's code. As the wise said: An image is worth a thousand words... ...

Visual Studio Add-In - adding a context menu item to solution-explorer

I'm developing my first add-in for Visual studio and we need to add a context menu item to the solution explorer, that shows up for particular file types only (in our case - ".resx"). I've been googling for 2 days now, unable to find any tutorials or code-samples... Only very basic things like adding a menu-item to the VS "tools" menu e...

Visual Haskell 2008/2010

Does Visual Haskell for Visual Studio 2008/2010 exist? Or what are the alternatives to try it? EDIT: I've got a lot of alternatives but it seems that there is no Visual Haskell right now. ...