You can’t customize context menu per extension via the Customize menu. For 
Solution Explorer there’s basically three context menus;


  *   Context menu shown when you right-click a project
  *   Context menu shown when you right-click a file
  *   Context menu shown when you right-click and you have a project and file 
selected.

You’ll need write an extension to do what you want.

From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On 
Behalf Of Greg Keogh
Sent: Saturday, September 23, 2017 9:59 AM
To: ozDotNet <ozdotnet@ozdotnet.com>
Subject: Visual Studio item commands

Folks, back in July I asked about adding a shell context menu for .sln files. 
It turns out that many extensions follow a simple pattern of registry entries 
in HCR where you can add commands. Some extensions such as .sln follow a 
different convention that is completely baffling and despite all sorts of 
daring experiments I failed to add menus to such items.

Now I want to do a similar thing to items with specific extensions in the 
Visual Studio solution tree. There are many samples of how to use Options > 
Customize to add custom menu commands to tree items, but they apply to all 
items. I want to add specific commands for extensions but can't find any clues 
so far. I'm starting to suspect that this is not possible via Customize and may 
need to write and install an extension, which is too much bother.

Does anyone know if it's possible to customize VS tree item commands by 
extension? It would be a fabulous productivity boost if it is possible.

Greg K

Reply via email to