Questions tagged [vsct]

Visual Studio Command Table. A command table configuration file is a text file that describes the set of commands that a VSPackage contains.

Visual Studio Command Table

A command table configuration file is a text file that describes the set of commands that a VSPackage contains. The Visual Studio command table (VSCT) compiler compiles XML-based configuration files (.vsct files) into binary command table output (.cto) files. The resultant .cto files are the same as those that are created by using the command table (CTC) compiler to compile .ctc configuration files.

Source: msdn

21 questions
7
votes
1 answer

Visual Studio 2015 toolbar combo, how to manage the value entered by the user correctly?

I have defined a dynamic combo for a toolbar in a VSIX package for Visual Studio 2015 using this setting in the VSCT file:
5
votes
1 answer

Visual Studio menu item appearing multiple times

I've created a menu item for the extension I'm working on; however, it is showing up 4 times in the Tools menu instead of just once. Below is what I have, but I have been unable to figure out why the menu item is showing up more than once. VSCT…
Pallas
  • 1,499
  • 5
  • 25
  • 57
4
votes
1 answer

VSCT: Different icons for different VS versions

I am making an extension for both VS2010 and VS2012 that has a toolbar command. Given the change in icon style between them, I want to provide a separate icon for each. How do I specify that in .vsct? I assume I might be able to use Condition, but I…
Andrey Shchekin
  • 21,101
  • 19
  • 94
  • 162
3
votes
1 answer

How to add an icon to a menu on vs extenion .VSCT

How to add an icon to a menu on the first level. This is on the context menu of the solution explorer
Philippe Auriou
  • 567
  • 4
  • 17
3
votes
1 answer

Using built-in icons in Visual Studio extension

What step do I need to follow to use some of the built-in icons of Visual Studio in my extension toolbar (e.g. Open, Save, Run, Break icons)? I have tried using constants such as cmdidSave from stdidcmd.h in my VSCT file like this:
dotNET
  • 33,414
  • 24
  • 162
  • 251
2
votes
2 answers

VisualStudio VSPackage Custom Command

I'm writing a little extension for Visual Studio 2015. I added a VSPackage to to embed some CustomCommands on the Shortcut Menu you get when you RightClick on a Project or a Folder inside the Solution Explorer. What I would like to do now is "open…
Easly
  • 334
  • 2
  • 11
2
votes
1 answer

VSCT Undefined 'Parent/@id' attribute

This is my first attempt at creating a visual studio extension, so please bear with me if I'm a bit dense. I'm stuck on getting the vsct file to compile (and hopefully do what I want it to do, but right now I'd settle for compile!) The errors I'm…
Bit Herder
  • 33
  • 7
2
votes
1 answer

Append item to Add menu of solution- or project node in Solution Explorer

How can I add a sub menu for the Add menu item when right click on a visual studio solution explorer? I have to add a single sub menu item which will be displayed n right clicking the visual studio solution and move to the Add option in that menu. I…
Anju
  • 39
  • 8
2
votes
1 answer

How to create command menu item with checkbox?

I'm writing a VSPackage and I need to have menu item with checkbox, just like on this sample image below: I went through this msdn reference regarding .vsct files, bud didn't fine any information explaining how to do it. What I have now is standard…
jwaliszko
  • 16,942
  • 22
  • 92
  • 158
2
votes
1 answer

Visual Studio 2013 Extension installed but no menus/functionality without VS SDK 2013 available

my extension is working fine for VS2010 and VS2012. But not in VS2013? Now if i install the VSIX with VS2013 the extension will be installed and is visible in Tools/Extension Manager. In the About-Dialog of Visual Studio there is no entry of the…
2
votes
1 answer

Can I add my add-in into "analyze" section of Visual Studio menu?

Visual Studio main window top menu contains "Analyze" item that upon expansion shows items such as "profiler", "run code analysis", etc. If I want to add my add-in command invokation into any Visual Studio menu I need to craft a command table (.vsct…
sharptooth
  • 167,383
  • 100
  • 513
  • 979
1
vote
1 answer

Does anyone know the VSSDK id for the 'Add' submenu group within the Solution Context Menu?

I'm looking to add a new button to the following sub menu group from within the Solution Context Menu in VS 2019 (see red arrow for intended location): The closest I've managed so far is beneath the 'Add' dropdown button in the main menu using the…
benjones
  • 31
  • 4
1
vote
1 answer

Make extension to build different menus for two different versions of visual studio

The documentation of Visual Studio Extensions says that I can apply conditionals for the elements inside the vsct file. https://github.com/MicrosoftDocs/visualstudio-docs/blob/master/docs/extensibility/vsct-xml-schema-conditional-attributes.md I've…
0
votes
0 answers

Adding a Button/Command to Context Menu in SSMS SQL Query Editor Extension

I'm attempting to create a Visual Studio/SSMS extension that adds a command/button to the context menu in the SQL Query Editor window. Initially, I tried using IDM_VS_CTXT_CODEWIN. Although it works for new .txt files, it's not effective for .SQL…
Revircs
  • 1,312
  • 3
  • 12
  • 23
0
votes
1 answer

VSCT: Place Search Textbox below the toolwindow toolbar

I have made a toolbar that has a Search Textbox, using the visual studio built in search for the toolwindowpane:…
1
2