Questions tagged [visual-studio-addins]

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

452 questions
3
votes
2 answers

How to acquire DTE object instance in a VS package project?

How can I get DTE instance in a VS package project? It's straigtforward in addin project since application is being passed as an argument to onConnection method, but it is unclear how to get it in a package.
3
votes
1 answer

Keyboard navigation not working in WPF window inside Visual Studio

I'm developing a VS-Package that shows a WPF window when a MenuCommand is invoked. inside this WPF window I have a listBox, which is focused immediatly when the window is loaded. when I show the window via myWindow.ShowDialog(), the arrow up/down…
3
votes
0 answers

Signals and slots autocomplete in Visual Studio

I'm trying to set up Visual Studio to develop a Qt application. I'm used to Qt Creator's autocomplete behavior. When the user types SIGNAL(, the signals list pops up. Now I'm using VS 2012 with Qt Add-in 1.2.2 for Qt5. And this behavior is missing.…
Pavel Strakhov
  • 39,123
  • 5
  • 88
  • 127
3
votes
1 answer

Best practice - How should I persist user input in Visual Studio AddIn?

I am writing a simple VS2012 AddIn and I am not sure where and how I should store data that I need to reuse the next time the AddIn is opened. I was thinking about simply storing the data in an XML file in the same folder as the binary but then I…
Marcus
  • 8,230
  • 11
  • 61
  • 88
3
votes
1 answer

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…
Georg Fritzsche
  • 97,545
  • 26
  • 194
  • 236
3
votes
1 answer

Working automatic build increment Visual Studio addin

I'm searching for a working Visual Studio 2012 addin which automatically increments my build number. Something like http://autobuildversion.codeplex.com/. But this isn't working for me. I am using Visual Studio 2012 Ultimate, if it matters.
Lucas
  • 3,376
  • 6
  • 31
  • 46
3
votes
2 answers

Visual Studio 2010/2012 Add-in Project Questions

I have already created a simple source code analyses tool for C/C++, but I wanted it to be an extension or tool for Visual Studio 2010 and 2012 editions. It is written completely in C++. For this reason I created it using "Create an Add-in using…
3
votes
0 answers

Visual Studio Add-In automatically showing code file besides header file?

In Visual Studio 2010 C++ projects, I always have the header (.h) and the corresponding code file (.cpp) open at the same time. I dock the code window of the header file to the left and the code file to the right. Is there an add-in available for…
Ray
  • 7,940
  • 7
  • 58
  • 90
3
votes
1 answer

Including More Database Connection Options in a Visual Studio Isolated Shell Application?

When starting up an isolated mode visual studio shell application, the only databases available in the Tools->Connect to Database are Access, SQL Compact, and SQL Server Database File. Is there a way to configure the isolated shell to include…
3
votes
1 answer

Show a Visual Studio Extension Toolbar by default

In a Visual Studio extension, I have defined a Toolbar in my .vsct file as: TextChanges DefaultDocked
3
votes
2 answers

my vs2008 addin for textformatting is awfully slow

i wrote a little addin, which does some formatting of my C# code. in the addins Exec method i do the following try { TextSelection selection = (EnvDTE.TextSelection)_applicationObject.ActiveDocument.Selection; String foo = String.Empty; …
user95359
3
votes
1 answer

Visual Studio Addin: How to know if already opened document got focus?

I'm very much newbie to VS Addins. Although, I subscribed to DocumentEvent.DocumentOpened. But additionally, I need to detect if already opened document got focus and I will read its contents then. How to get its focused state? Thanks Farrukh
Farrukh Waheed
  • 2,163
  • 2
  • 29
  • 59
3
votes
3 answers

How to get the project directory from a Visual Studio Add-in

I want to get the project directroy from an Add-In. But if I use the following code: string projectDir = Directory.GetCurrentDirectory(); it returns C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\IDE\\ How can I get the Project…
chaliasos
  • 9,659
  • 7
  • 50
  • 87
2
votes
1 answer

C# Visual Studio add-in - detect when saving document

I'm working on a Visual Studio 11 add-in. Through code, how can I detect when the current active document is saved? I don't know where to begin, and I couldn't find anything on the web about it.
Mathias Lykkegaard Lorenzen
  • 15,031
  • 23
  • 100
  • 187
2
votes
0 answers

How to programmatically enable the TFS "source control explorer" when using another source-control plugin? (From a Visual Studio Add-in)

I am writing a Add-in for Visual studio 2010+ that will act as a Mercurial<->TFS Bridge. The Add-in currently works by taking the latest from an existing TFS project and converting it to a local Mercurial repository that pushes through TFS up to…
Phobis
  • 7,524
  • 10
  • 47
  • 76