how to remove items from right click context menu in Visual Studio Code? - visual-studio-code

Currently, my right click context menu looks like this
It is too long. Many items I don't ever use. Can I remove some items from the menu?
Thank you.

You can click the menu bar then by right click you will get the option to close the component.

Related

VSCode "Open Editors" panel not showing

I don't know what I have done but I cannot see the "Open Editors" panel in the Explorer view
I note also that clicking on the three dots (Views and More Actions...) to the right of the word Explorer at the top of the explorer panel the word Folders is greyed out
Can anyone point me to the setting I need to change in order to rectify this situation?
Just in case anyone else has the same problem here is how I resolved my issue. I won't bore you with how I discovered the solution.
Right-click in the activity bar, this will bring up a context menu with the entry for Open Editors listed but not marked with a tick
Activity bar context menu.
Clicking on "Open Editors" in this context menu brings up a new icon in the activity bar that looks like an open book
Open Editor icon
Right-clicking on this new icon reveals another context menu that includes the option to reset the location of the Open Editors panel.
Open Editor context menu
Selecting this option resolves the problem.
How I got into the problem in the first place is still difficult to ascertain. With the activity bar in its default configuration I must have dragged the "Open Editors" header to somewhere on the activity bar, that clearly removes it from the Explorer side bar but how I inadvertently right clicked this new icon and selected "Hide 'Open Editors'" without realising remains a mystery.
Go to view and click on Open View and the on Open Editors.
3 dots on extreme right hand side has an option - keep editors open --> set it to default view. Once done the open editor will be be visible on the left.
This is considering you have default vs code layout...
I am currently using version: 1.68.1
In VS Code, go to Settings and in the search box, type explorer.openEditors.visible. Set the value in the dialogue box to any number greater than 0 and you are good to go. Refer to the image below.

JavaFX MenuBar: Separate mouse click on menu to show corresponding menu items

In JavaFX MenuBar, If we click on any menu then it shows corresponding menu items. Now If we don't move our mouse pointer from the clicked menu and drag it horizontally over other menus, then for each menu it shows corresponding menu items. It is the default functionality. But I don't want that.
I want to configure it in a way such that separate mouse click would be necessary to show corresponding menu items. So here If we click on any menu and drag mouse pointer horizontally over another menu then it should do nothing.
here, by saying mouse click, I meant click & release(not hold the click)
I searched in StackOverflow & google for any related questions or blog posts but found nothing. Any suggestions will be highly appreciated. Thank you.

How to remove item from pop up menu in matlab?

I am working on matlab gui.
I stop on drop down menu.
How to remove item from pop up menu ?
I would appreciate for any help.
Because you have tagged your question with matlab-guide I consider you are working with it:
mark your pop-up-menu-uicontrol
right click and choose the property editor
click on the icon beside the String-property
enter or delete the desired entries
entries have to be separated by a new line.

What menu is called by Alt-Shift-S in Eclipse?

What menu is called by Alt+Shift+S combination in Eclipse? How to call it from main menu? It is mostly resembles Source menu but has some differences.
Source menu
Source menu looks same but not exactly:
It is Source menu. If you do a right click in java editor you can see key combination for it and if you hover over Source you can see it is the same.
About the visual difference: If it is invoked from the main menu, disabled menu items stay visible (but grayed), because you would be very confused if the vertical position of the same menu item changed all the time (depending on how many other menu items above are disabled).
Context menus on the other hand are invoked at arbitrary places of your screen, so you don't notice a certain menu item offset "jumping" relative to the complete context menu. That's why many menu items are not just disabled in the context menu, but set to invisible.
That's the Source menu, Alt + Uppercase S

Hide Eclipse Menu Bar (auto-hide)

I'm trying to hide Eclipse menu bar to save some screen real estate. I found I can do this using perspectives but that would permanently take out the menu from that perspective. The behavior that I want to get is something along of auto-hide, so that the menu remains hidden until I hit ALT+F for example or any other ALT key combo.
Is there's a setting or a plugin that can do this?
Thanks!
This is just a work around. Create two perspectives.
First one named - With Menu.
Second one named - Without Menu.
In the "Without Menu" perspective remove all menu items and Save.
To create the effect of hiding and showing, switch between perspectives by using
Ctrl+F8.
Theres a fast view option- just right click the tab and select Fast View. It'll bring the entire window down to the eclipse taskbar. You can recover the window by just clicking on it's icon.
Source: https://bugs.eclipse.org/bugs/show_bug.cgi?id=56119
Have a look here Is there a Macro Recorder for Eclipse? You could set up the macro so respond to ALT+F possibly.