Hide items in the right-click context menus in Visual Studio 2010 (08)?

前端 未结 3 1647
深忆病人
深忆病人 2021-01-30 12:41

The right-click context menus of the source editor, the project items and the solution item, is getting ridiculously long, and two of them even have scrolling now on my 1680x105

3条回答
  •  执念已碎
    2021-01-30 13:19

    You will need to choose the correct context menu in the Customise option.

    Go to Tool > Customise,

    Then choose the Context menu as you did in your Edit1 screenshots but choose "Editor Context Menus | Code Window" from the dropdown menu instead.

    enter image description here

    From there you should be able to delete whatever command you don't need from your context menu. Next, for the other commands that can't be found in Editor Context Menus | Code Window (mostly plug-ins or extensions related commands) you will have to go through other categories.

    For example, I am using CodeMaid and when I right click a file in Solution Explorer the context menu below are shown

    enter image description here

    In order to remove the 'Cleanup Selected Code' command I will have to choose the Project and Solution Context Menus | Solution Folder dropdown option.

    Added: Here is my sample reduced context menu (removed Copy, Cut, Paste, Outline Menu and Create Snippet...)

    enter image description here

    Hope this helps =)

    Edit: In case you want to add back the commands you removed you can either add them back using New Command... or just press Reset All. Keep in mind the later will restore all the commands. Thus unless you are really having trouble finding the removed command use the first method.

提交回复
热议问题