Questions tagged [vsx]

Visual Studio eXtensibility (VSX) is the ability to develop extensions to the Visual Studio IDE from Microsoft. Extensions are developed using the VSSDK.

Links:

Most of the information on add-ins is in the SDK.

351 questions
7
votes
1 answer

Visual studio: automatically update C++ cpp/header file when the other is changed?

For example, if I change the signature in a function in either the header or the cpp, I'd like it to automatically change in the other one. If I add a new function in either, it should appear in both. If I delete a function, it could probably…
Jon
  • 5,275
  • 5
  • 39
  • 51
7
votes
1 answer

How can I perform "Go To Definition" programmatically in Visual Studio?

Given a string that represents a specific class/field/property (eg MyNameSpace.MyClass or System.String.Length), how can I programmatically cause Visual Studio to go to that class/field/property (ie, make Visual Studio do the same thing that would…
Omer Raviv
  • 11,409
  • 5
  • 43
  • 82
7
votes
1 answer

Passing custom project properties from Visual Studio Extension during build

How can I pass a custom MsBuild property to Visual Studio build engine from Visual Studio Extension (I want to write a custom add-in) ? Just like Visual Studio itself is passing properties like $(Configuration) and $(Platform), I would like to…
Maciej Wozniak
  • 1,174
  • 15
  • 27
6
votes
4 answers

VSX - Set a ToolWindowPanes initial position to be docked

I'm creating a Visual Studio package that exposes a tool window and I'm trying to make sure that it is displayed docked to the left edge of the main Visual Studio window when the package first loads. [ProvideToolWindow(typeof(MyToolWindow),…
Justin
  • 84,773
  • 49
  • 224
  • 367
6
votes
2 answers

VS 2010 Extensibility: Create a extension to automatically wrap selected text (code) in comments and adding a comment above it

I am trying to develop an extension that will work similar to the Comment toolbar button in VS 2010, but I want to mark all text as Commented Out and put a comment above it. Here's an example. I know it's simple, but it's just a lot easier. My idea…
Martin
  • 23,844
  • 55
  • 201
  • 327
6
votes
2 answers

Creating a simple text-manipulating Visual Studio 2010 extension

I've been wanting to create a simple text-manipulating extension for Visual Studio for a while, and now I've finally found some time to look into how extensions are written. What I have in mind could be accomplished through VBA macros, but I'd…
snemarch
  • 4,958
  • 26
  • 38
6
votes
3 answers

Building a Visual Studio Package based on another one

I want to add my own project type based on IronStudio. So, I downloaded the source for and compiled the latest version of IronPython, then I created a new Visual Studio Package. I added the Templates\Projects\MyProject folders, and added a file to…
mpen
  • 272,448
  • 266
  • 850
  • 1,236
6
votes
2 answers

VS2010 add-in custom menu item in files of Solution Explorer

I need to create a custom menu item for Visual Studio 2010 Add-in in C#, but I have had no luck in finding a solution for my needs. I am aware that there was a similar post (Visual Studio Add-In - adding a context menu item to solution-explorer),…
6
votes
2 answers

Changing the config file in a Visual Studio Package

I'm building a Visual Studio Package and associated with it, I have an app.config file (which contains some information about connecting to a WCF service). As far as I can tell, this package is actually connecting to the devnev.exe.config…
Alex
  • 7,432
  • 20
  • 75
  • 118
6
votes
1 answer

How to define classification formats for each theme

In my editor extension I use custom classification formats for keywords, identifiers and so on. Of course, there are default formats I could use, because then colors (used by syntax highlighting) will be changed in accordance to the selected…
Matze
  • 5,100
  • 6
  • 46
  • 69
6
votes
2 answers

From a VS2008 VSPackage, how do I get notified whenever caret position changed?

I'd like to get notified whenever the caret position changed in the active text view. The only thing EnvDTE seems to offer is the LineChanged event, which of-course does not get raised when moving the caret left or right within the same line. I…
Omer Raviv
  • 11,409
  • 5
  • 43
  • 82
6
votes
2 answers

VSIX Package doesn't include referenced project's dependencies

We have a visual studio package (VS Package) that references a class library project (Project A). Project A in turn references another class library project (Project B). So the dependency structure looks like this: VS Package > Project A > Project…
Martyn
  • 1,446
  • 2
  • 19
  • 30
6
votes
1 answer

How to create custom project that inherits from c# using MPF?

Using Visual Studio's Managed Package Framework, how can I inherit from C# so I can have C# property pages and C# project items? I've tried making a flavored project, but it was limited in terms of making our own custom nodes and custom file…
5
votes
4 answers

which one to choose? DXCore, Resharper or VSX?

I want to write a visual studio addon to do some code modifications for me (like some specific refactoring). I was wondering which one of these tools should I use and why? we have licenses for resharper, the other two are free and this is an…
Ali Shafai
  • 5,141
  • 8
  • 34
  • 50
5
votes
1 answer

How do you force a call to ILineTransformSource.GetLineTransform in a VS extension for a change to a line adornments dimensions?

I 'm writing a Visual Studio extension where I'm creating line adornments that need to be resized when the user resizes the code view. I.e. when the user resizes Visual Studio's window width, I modify both the adornment's width and height. I'm…
alexand256
  • 133
  • 5
1 2
3
23 24