Skip to content

Clean up context menus #225411

Open
Open

Description

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

Image

Activity

  1. emsaks commented on Aug 16, 2024

    @emsaks

    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.

  2. generikvault commented on Sep 18, 2024

    @generikvault

    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

  3. alfuken commented on Oct 8, 2024

    @alfuken

    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?

  4. added
    under-discussion
    menus
    on Dec 12, 2024
  5. BHznJNs commented on Dec 26, 2024

    @BHznJNs
  6. aeckstorm commented on Oct 27, 2026

    @aeckstorm

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

menusunder-discussion

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions