You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context menus, especially in editors and notebooks, have grown substantially in size and variety as VS Code has evolved. There are inconsistencies to address (e.g. Share is in a different place in different menus) and organizational improvements that could be made.
Here's a rough sketch that looks at:
Folding large sections like Go to into their own submenu
Moving Copy / Share / Copilot groups to the bottom so they are consistent across different menus
Reacted by Sophie L, Bruno Heridet, Chris Haws, Julian Schmidt, Nicolas, Sam Edwardes, CatBraaain, Syul968, Santino, Marko Milic and 16 more
Wouldn't it be nice if we could just pin and unpin commands from the command pallet to the context menu? Probalby similar to the keyboard shutcuts. Some extensions fill the context menu with entries that I basicly never use.
There is already a feature request for custom menus: #9285
Reacted by ljubadr, Urist McUristurister, Andrzej Markiewicz, Julian Schmidt, Dan, peter-fb, Riley Labrecque and Anthony
GeneriK (@generikvault) is right. What you're suggesting David Dossett (@daviddossett) is only cleaning up the mess of the items added by the vanilla VSCode, but the real problem is waaay beyond that. A more generic solution is long overdue.
How about an ability for the user to create context menu "folders" at will, and then pin/unpin commands to either those folders or to context menu root directly? For starters via JSON config directly (I'd assume it'd be a plain tree, where if key is one of the existing commands - then it's a command, and if not - it's a folder. And if it's a dash -, it's a separator. As simple as that.). And later, maybe, allow editing this via a multistep command, or even a drag-n-drop GUI in a config editor.
WDYT?
Reacted by Malformed C, Malachi McIntosh, Yingtan Zhang, Gabriel Seltzer and Ilya Borisov
Reacted by Pixelum, Malformed C, Yingtan Zhang and Gabriel Seltzer
I believe options to move, pin, hide, remove, and key bind within settings could resolve these issues. The C# tool kit alone introduces numerous context menu items I never use. Customizing these menus would be helpful, and it is odd that adding items is simple while removing them is not allowed.
Activity
emsaks commentedon Aug 16, 2024
Maybe merge the Goto and Peek options - have a clickable 'peek' icon on the Goto entry to peek instead of opening new window.
Also, the copy/paste/cut can be shrunk into one row of icons like in the Windows 11 Explorer context menu.
generikvault commentedon Sep 18, 2024
Wouldn't it be nice if we could just pin and unpin commands from the command pallet to the context menu? Probalby similar to the keyboard shutcuts. Some extensions fill the context menu with entries that I basicly never use.
There is already a feature request for custom menus: #9285
alfuken commentedon Oct 8, 2024
GeneriK (@generikvault) is right. What you're suggesting David Dossett (@daviddossett) is only cleaning up the mess of the items added by the vanilla VSCode, but the real problem is waaay beyond that. A more generic solution is long overdue.
How about an ability for the user to create context menu "folders" at will, and then pin/unpin commands to either those folders or to context menu root directly? For starters via JSON config directly (I'd assume it'd be a plain tree, where if key is one of the existing commands - then it's a command, and if not - it's a folder. And if it's a dash
-, it's a separator. As simple as that.). And later, maybe, allow editing this via a multistep command, or even a drag-n-drop GUI in a config editor.WDYT?
BHznJNs commentedon Dec 26, 2024
I made an extension that can partially make the contextmenu cleaner: https://github.com/BHznJNs/vscode-custom-contextmenu
aeckstorm commentedon Oct 27, 2026
I believe options to move, pin, hide, remove, and key bind within settings could resolve these issues. The C# tool kit alone introduces numerous context menu items I never use. Customizing these menus would be helpful, and it is odd that adding items is simple while removing them is not allowed.