Questions tagged [visual-studio-addins]

Add-ins extend Microsoft Visual Studio using the automation model (EnvDTE). Removed in Visual Studio 2015.

452 questions
4
votes
1 answer

Custom reference types

It's always been possible to add references for your project in Visual Studio. These show up under the special "References" folder in the solution explorer. You can also add service references, which also get put under their own special folder. I'd…
gzak
  • 3,908
  • 6
  • 33
  • 56
4
votes
1 answer

Subscribe for outlook events from VSTO Add-In

I need to interact with outlook in a way that, when a task is deleted in outlook, I get notice about and if the task has the text "HELLO" in it's body, show a MessageBox. My add in is in VSTO 2005, and it's for Office 2007. The only way I see to…
Ansega
  • 61
  • 2
4
votes
1 answer

How to encapsulate User Setting (Options Page) in Visual Studio 2010 AddIn

I'm currently developping a Visual Studio Extension and I have a question about Options Page. Options Page allows user to save setting about your Extension. Visual Studio handle a lot of work for us. I created the Options Page. public class…
Morgan
  • 343
  • 1
  • 3
  • 9
4
votes
2 answers

Visual Studio 2010 Add-in: How to locate project references?

How do you programmatically find & iterate all project & dll references within a Visual Studio 2010 solution? I can iterate all projects and found the Project.ProjectItems property and Project.Properties but have not found any way to reference the…
4
votes
1 answer

Visual Studio Addin - 1. How to Add a context menu? 2. How to get caret position

I'm writing a (very) simple Visual Studio addin. Two things that would make it work nicer are: A context menu. Knowing the caret position in the current document (so I can inject text at that position). Any ideas?
Giovanni Galbo
  • 12,963
  • 13
  • 59
  • 78
4
votes
1 answer

Performance of changing Visual Studio colors with custom add-in

I'm creating an add-in for Visual Studio 2008 that will allow me to switch between color schemes with a hotkey. I got it to successfully load a color scheme and apply it, but it's very slow. Here's the code that applies a scheme: // The Theme class…
4
votes
3 answers

Are there any utilities to list all components of a WinForm?

Our previous developer used a plugin (Infragistics) in order to create the UI components (buttons, tabs, docks, labels, etc.) but it requires all of it's DLLs to be included. I'm looking to convert this to a basic WinForm with "stock" UI components…
mastofact
  • 540
  • 1
  • 6
  • 23
4
votes
1 answer

Visual Studio 2010 add in - events not triggered

I have written an add in that takes the active document as a parameter. So each time that the active document has changed, I need to know. To do so, I wanted to use "Events.DocumentEvents.DocumentOpened" event of the DTE2 object. But the problem is…
SlimShady
  • 71
  • 3
4
votes
1 answer

DTE ItemOperations.NewFile(...) for VS2010 Addin

in this code, in my addin that I'm attmepting to wrie for Vs2010 _applicationObject.ItemOperations.NewFile( "General\\Text File", FileName, Constants.vsViewKindCode ); The first paramter is defined as the virtual location for the…
Eric Brown - Cal
  • 14,135
  • 12
  • 58
  • 97
4
votes
2 answers

Add-in for Visual Studio for project file editing (csproj)

Do you know an add-in for visual studio which adds properties for C# projects? csproj file format is very powerful but only small amount of options can be changed through the standard properties page. For instance, I want to have several…
Kirill Lykov
  • 1,293
  • 2
  • 22
  • 39
4
votes
3 answers

Visual Studio addin; to highlight all words which match selected word?

While using NotePad++, and select a certain word, it automatically highlights all matched words? Does anyone know if there is a Visual Studio addin that can do this? or are there any hidden environment setting that can do this?
Ahmed Atia
  • 17,848
  • 25
  • 91
  • 133
4
votes
0 answers

VS2013 Extensions, VSIX project does not show Item Templates

I downloaded and installed SDK, after that I'm able to see project templates and I created first VSIX Project. But when I right click the project to add Item Templates like "Custom Command" or "Custom Tool Window" there is even no Extensions node…
4
votes
1 answer

Where does Visual Studio store data connection strings used in SQL Server Data Tools

If you are familiar of using SSDT tools in visual studio to compare database schema or data then you might be noticed the below picture ... Due to my visual studio add-in work i need to provide end user these connection strings.. Can you please…
Moumit
  • 8,314
  • 9
  • 55
  • 59
4
votes
2 answers

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…
Daniel Jennings
  • 6,304
  • 3
  • 32
  • 42
4
votes
1 answer

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…
Chris McGrath
  • 1,037
  • 1
  • 11
  • 22