in a Eclipse view shortcut binding key does work for some operation but does not operate for others - eclipse

We have a view that we developed, in this view at the beginning a keyboard shortcut key binding works. So I open a list. Then After right clicking the opened list item, I get the context menu. Now after getting this last context menu, I try to hide the list by clicking the same key binding. But the windows computer gives a sound of bing. It sounds like a focus lost but nope, The list item is higlighted. And when I press the item and then press the key binging it bings again. And interestingly the other keys does work. I can press other key options and they work but the shortcut key binding key that hides and shows the list of items does not work. When I right click to the item that does not work with certain key bindings, does work interestingly. any idea about this situation ?

We have used setEnabled in code, that disables the shortcuts. After deleting these enablement code we got the keys work as we want.

Related

Shortcut for Stepping Down in the VSCode Autocompletion Suggestions

VSCode suggest multiple auto completion options in a list to me. I can navigate the list with the arrow keys, and auto complete using the currently selected item via ENTER. To me, this is counter intuitive, because to navigate with the arrow keys, I have to shift my hand position on the keyboard. I would expect, e.g. TAB to navigate to the next element in the list & hitting ENTER to complete. Is there a shortcut for navigating besides the arrow keys that I am missing?

How to remove Eclipse user short cut keys?

I create a user shortcut key in the Eclipse.
Now I hit the restore defaults option. It wouldn't remove user keys and Still available user keys.
Is there any other way available to remove user keys?
For me, when I hit the Restore Defaults button, all custom key bindings get removed. Also custom copies of bindings (such as Next tab in your screenshot) get removed. I don't understand why that doesn't work for you.
But your can try this:
Select all the copies of Next tab one by one and hit the Unbind Command for binding copies, or button Restore Command for original bindings.

VSCode how to automatically insert Intellisense suggestions without having to press Enter?

Default VS Code Intellisense behaviour
User is presented with a menu of suggestions
User then has to press the Up or Down arrow keys to navigate through the menu
Finally user has to confirm with Enter to insert the suggestion and close the dialog
What I would like instead
Don't need to press Enter
Suggestions are automatically inserted (and cycled through) by pressing Up/Down
Pressing any other keys will close the dialog and resume typing
To be clear, I want to replicate the default behaviour of YouCompleteMe:
When you type, a completion menu pops up. If you like the completions, you use the <Tab> key (by default, can be changed to <Enter> or <Down> arrow or whatever) to select a completion string you want. The very act of "tabbing through" the list to select the item you want inserts the candidate string. When you tab to a different candidate, the editor code is replaced with the new candidate. There is no accept key because by the point where you have the candidate you want selected in the menu the candidate has already been inserted in the editor. There is nothing to "accept". You just keep typing, the candidate has already been inserted.
Is such behaviour possible with Visual Studio Code, either by default or through a plugin?
The editor.tabCompletion option is the closest thing currently available:
By default, tab completion is disabled. Use the editor.tabCompletion setting to enable it. These values exist:
off - (default) Tab completion is disabled.
on - Tab completion is enabled for all suggestions and repeated invocations insert the next best suggestion.
onlySnippets - Tab completion only inserts static snippets which prefix match the current line prefix.
(Emphasis mine)
... except that the first Tab press hides the suggestion window.
I did some digging about editor.tabCompletion, and I found that closing the suggestion window is part of the tab completion's option original design, and that while other users have asked about an option not to close the suggestion window or specifically YouCompleteMe-style behaviour, that this is currently not supported.
"editor.acceptSuggestionOnEnter": "off",
To disable Enter to accept suggestion.

Eclipse toggle show/hide panels

Is there a way to show/hide various panels in Eclipse?
For example, shift-alt-p opens the Package Explorer panel in my setup, but then to close the panel I have to mouse over and close it manually.
Ideally one could toggle show/hide panels in Eclipse with keyboard shortcuts set via prefs > general > keys
Tough on the wrist to go keyboard-mouse-keyboard-mouse all day.
Perhaps I'm missing some magic combo, please enlighten if you have the Nirvana to spare.
Press Ctrl+F7 you will get below pop up.
Traverse or cycle through the views you want to close by pressing F7 key. After selecting the view to be closed in the above pop up release Ctrl key.
Then the view to be closed will be activated.
Go to Window->Preferences type keys in the search box. Check whether any short cut key is assigned to close part. Refer below picture,
In my case it is assigned to Ctrl+W. Once the view is activated press this short cut key to close the view. If any short cut key is not assigned to close part then you can assign new short-cut key for this.
Click on Binding text box(Refer second picture) and assign your own short cut key.

Navigating menus in Eclipse without moving my hands

If you're as lazy as I am, you don't want to go moving your hand every time you need a menu in Eclipse. Is there any way to navigate menus in Eclipse without moving your hands to the mouse or the arrow keys?
I've searched for key bindings for menu navigation (replacing Up/Down/Left/Right), but came up empty.
UPDATE
To clarify, I am familiar with a lot of the features mentioned in the answers, such as "Show Key Assist", and "Quick Access". I've found that the only time I'm ever really moving my hands is to navigate through a list of items, such as the Package Explorer or the Open Resource dialog. I haven't found any alternatives to the arrow keys for these actions.
I like to bind "Show Key Assist", and "Quick Access" to convenient keys, in order to get a list of all menus/commands/views accessible from the context I am currently in.
This isn't really a replacement from ALT+arrows, but it can help reduce the menu exploration you need to do in order to find the right action to launch.
As #VonC mentioned, I'd use Quick Access (CTRL+3) for most commands that don't already have a keyboard shortcut.
You can also use mnemonics to access most menu items. i.e. ALT+F P for print, or ALT+R N for the Run Configurations dialog.
F10 will open the left most menu on most OSes. CTRL+F10 will open the view menu from within a view, and the ruler menu in a text editor. SHIFT+F10 will open a context menu in almost all locations.
PW
If you want to navigate between views of eclipse, you can use Ctrl+F7 & then up/down arrow keys to select the one. For 'Open Resource Dialog', you can use Ctrl+Shift+R.