when I try to go to certain definition I am getting always this annoying dialog
How can it be removed, and I will be navigated strait to the required definition?
The solution was to check "goto" in Multiple Definitions instead of peek
Check if this answer helps you toggle off the feature How to remove popup window showing function definition in VSCode
It seems that you can't go directly to the definition, but the shortcut is already defined.
Related
This annoying window when you go to definition is impossible to disable and has been a blemish on an otherwise first rate code editor.
For some reason it picks up .d.ts files and I get the window even when there is only one definiton. I would love to remove this feature but it does not seem possible.
Below is a screen shot of it picking up a definition and for some reason a react index.d.ts file. So annoying, I can never go to the definition, I've got to click about until the preview window decides it wants to close:
What finally cured it for me was:
"editor.gotoLocation.multiple": "goto"
Sometimes when I write the function name, the api is shown above its name automatically, but sometimes it doesn't work and I have to rewrite the function name to get that, so is there a shortcut key for it?
(I know man function_name but I used to CTRL+Q in NetBeans to get the same thing quickly but I can't find one for vscode.)
ALT+F12 seems to do the job. It's called "peek definition" which is available in the right click options too.
Also note that the opened window doesn't go away by clicking somewhere else outside of it, however, instead you can still use the ESC from keyboard.
In visual studio code (1.29.1) ctrl+a doesn't do anything for me. I checked keyboard shortcuts and it's mapped to a few select all actions (editor.action.selectAll, etc.) but when I'm in a file and press it nothing happens. How do I select all text in the current file in visual studio code?
Thanks for the comments, it make me realize it must be an environmental issue. Turns out if you have any mapping starting with a key combination that will lock that mapping to the key combo and you can't use it for anything else.
To make save all ctrl+shift+s I had to re-map save as and I mapped it to ctrl+a+s, so everytime I hit ctrl+a it just waiting for second key. In the status bar at the bottom of my editor it said something like "Ctrl+a detected, waiting for second keystroke", which means Ctrl+a won't work on its own. I re-mapped Save As to some unused key combo and it fixed select all.
This question was luckily answered on another thread
I'll post the OG answer here, nonetheless.
Most new comers to VS-Code could resolve this issue with the 2nd method provided by the OG answer:
Goto File > Preferences > Keyboard Shortcuts
in the search bar type this Select All
There's should a couple of results, you'll obviously want the "Select All" result
right click on his line and click on Change When Expression
a textbox would be highlight for you to fill in text. type editorFocus
press enter and done!
The OG answer provides image if you need to confirm that you're doing it right.
side-note: This issue bugged for more than 3 years and is the main reason my I used VS-Community over VS-Code.
So it's nice to finally be able to work normally in this very robust customizable IDE text-editor.
I would like to change the publish shortcut behaviour to apply to every window i work.
This would remove the need to be in the server view to use this shortcut (CTRL+ALT+P)
So far I followed this post: eclipse key bindings everywhere
Setting "when" to "in windows" did not work. I guess because the shortcut is still part of the category "server"
How can I change the category? Is there another way to fix this?
This is not going to work. The command handler for the Publish action (org.eclipse.wst.server.ui.internal.view.servers.ServerActionHandler) expects the current selection to be a server and doesn't do anything if it is not. So you have to be in the server view for it to work.
I think I already know the answer to this question is "No", but I ask anyway just in case I missed something in the dox.
I adore the Eclipse "Quick Outline" feature where I can easily see all the member variables and methods for the class my cursor is currently located in by typing Control + O (or Navigate -> Quick Outline).
What would be equally useful is a way to see all local variables available at the point my cursor is. Does such a feature exist?
Thanks!
You can probably use content assist for this. Just press Ctrl+Space on an empty line, the resulting content assist popup should offer suggestions on what can be inserted at that point, local variables should be on top followed by fields and then member functions.