vsx

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

Detecting Visual Studio Smart-tags events

Is it possible to detect with VSX when any (or a particular) smart tag event is happening? I mean, every time we rename a variable, for example, a smart tag is available that allows us to change it through a form. I'd like to know if I can access that "text is changing" event. I don't mean to have to check for myself if the text is bei...

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

Hey guys, 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), but it did not help, as the blog follows the process through the integration pack...

Visual Studio 2008 coding for Visual 2010 add-in

Hey guys, I been wondering if VSX is backwards compatible in coding, as there had been very limited and vague resources for the VS2010 add-in API. I need to create an add-in for a project, but since I've never coded in VSX before, I was wondering if anyone knew. Thanks in advance. ...

Intercept generation of event handlers in Visual Studio

I'm making a small Visual Studio addin that changes the default generated event handler names in VS from something like txtName_Click to something user defined. I've already done this for the WinForms and WebForms designer using IEventBindingService, but I want to do this in the C# code editor as well. When you type something like "txtNa...

Visual Studio CommandBar "Names"

In Visual Studio 2010, the only option you can create is a commandbar under "Tools" on the "MenuBar". In some cases, I would want to know how to place the command bar on the standard bar, or be found when I right-click a project file. Example: Microsoft.VisualStudio.CommandBars.CommandBar menuBarCommandBar = ((Microsoft.VisualStudio....

Visual Studio Add-in Exec running Automatically

Hey guys, I have a dilemma that I am uncertain about, as I not sure if it's is exactly possible for a Visual Studio Add-in to run its code automatically. I need an add-in that can run passively, like a logger for Visual Studios. However, the Exec method that I know so far can only execute commandbar functionality, but I need the code to...

Can an extension be made to interact with a floating/dockable window?

Is it possible to create an extension that interacts with a floating/dockable window in VS2010? If so, are there any code samples that could demonstrate this? At the very least could I create a XAML markup to look like a floating window is docked to the view somewhere? Thanks, Nick ...

Visual Studio Editor, MEF in-Depth

I have been having difficulty simply writing a Visual Studio Editor Extension with MEF (Managed Extensiblity Framework). I thank those who answered my previous question, as they helped me know that I need to work with MEF. I've been trying to learn MEF for the Visual Studio Editor from MSDN's page, Extending the Editor, but it appears t...

Extending Visual Studio with a Custom Designer

How do I create a custom Visual Studio 2008 UI designer for a C# file? For example, when you double click on a DataSet in the Solution Explorer, a UI screen appears that allows you to edit the DataSet, even though it is defined in XML/code (which you can right click and "View Code"). Usually this code is separated from user code in som...

Good Code Spell Checker for Visual Studio 2010

Are there any good (preferably free) solutions out there? I have already found these: Spell Checker Code Spelling Checker Extension for Visual Studio 2010 (VSX) but will appreciate more suggestions. ...

How to create a Visual Studio extension to display a block of color over a hex value?

I was told that in Visual Studio I can "create an extension" to create a block of color when the cursor hovers over e.g. "DF7401" or "ffcccc". How would I do that? ...

Access EnvDTE from msbuild code when building in Visual Studio

When I do a build from Visual Studio, on post-build I execute a PowerShell script from MSBuild using the PowerShell MSBuild Task (http://powershellmsbuild.codeplex.com/). In this PowerShell code I would like to add/modify items to my project using Visual Studio automation (through the EnvDTE object). The exact case is: For each X.asmx ...

Publish a web app from within an VS2010 Extension

I want to publish a web app from within an VS2010 extension. In macro I use to write: DTE.Windows.Item(Constants.vsWindowKindSolutionExplorer).Activate() DTE.ActiveWindow.Object.GetItem("MyWebApp").Select(vsUISelectionType.vsUISelectionTypeSelect) DTE.ExecuteCommand("ClassViewContextMenus.ClassViewProject.Publish") but this doesn't se...

Extending VS 2010: to include additional items on Right Click context menu (add) on solution explorer?

Hi there, I wish to create an additional item on the context sensitive right click "ADD" on the solution explorer in vs 2010. Basically it currently looks like this New Item Existing Item New Folder Add ASP.NET FOLDER // ACTUALLY THIS IS A MENU with a SUB MENU Class What i am trying to do is create a new item similar to "Add asp.net...

VS2010: VSIX installation doesn't deploy item templates inside it

Hi, Given demo solution with two VSX-projects: 1. Add New Project -> Extensibility -> Item Template - "ItemTemplate1" 2. Add New Project -> Extensibility -> VSIX Project - "VSIXProject1" I did no changes in "ItemTemplate1", so it constains default item template (ItemTemplate1.vstemplate): <VSTemplate Version="3.0.0" Type="Item" xmlns="...

how to pass/transfer out parameter as reflection? - visual studio extensibility c#

I have an out parameter. Is it possible to transfer it as reflection? Can you give me some examples how to do that? ...

How do special folders in projects work?

In regards to visual studio extensions how do things like References, Properties, App_Code, App_Data work? I am looking to create a special folder that is in every .NET project that has some custom context menus. I cant seem to find any information on how to do this? ...

How to Extending vs2010 editor context menu for .js file?

I have a VS2010 VSIP package with several commands,Those commands are added to the javascript editor's context menu,and i am using <Group guid="guidPrettyJsCmdSet" id="ContextMenuGroup" priority="0x0600"> <Parent guid="guidSHLMainMenu" id="IDM_VS_CTXT_CODEWIN"/> </Group> but it work only C# file,how to make it work for .js...

How to extend Visual Studio to provide override-like behavior?

When you type the override keyword in a C# file in VS and press Space, you get a second menu offering the method to override. Can I extend this behavior with my own custom code that would use another keyword to pop up my own list of actions? ...