How to get VS Code to list methods of object when multiple extensions are competing for tab complete - visual-studio-code

In VS Code, when writing the name of a method on an object, it seems to take a while for the method menu to pop up. I also am using github copilot, which is great, but it's suggestions often show first and I don't see the menu for the methods until I type some more letters.
Example, let's say I have the following line of code:
my_json = My_Class(id=5).
and I want to type the name of the method that returns some json. Gitlab copilot might suggest something like the following, where the 'get_json' portion is in grey and available for tab complete.
my_json = My_Class(id=5).get_json()
But, let's say the correct name for the method is 'get_object_json', I would have to type the following before the object method/attribute menu pops up
my_json = My_Class(id=5).get_o
Is there a way to manually open the object method/attribute menu? A keyboard shortcut? So that I can open it right after I have typed the period?
Similarly, sometimes I DO want the GitHub suggestion but, right as I hit tab, Pylance IntelliSense replaces the tab complete with the name of some variable or library, or global (i.e. some built-in exception class).
It would be great if there was a way to assign a specific key combo for tab complete of GitHub copilot. Like tab-option, or something, that will only complete the github copilot suggestion, if there is one.

Related

remove github definition and references

how to remove github definition and references popup on click of any text.
I'd much rather have it work as plain text copy and select.
I don't think you can at all. You can either use the "raw" button to get the raw text, but that will also hide all navigation for you.
Another option is to clone the repo locally and navigate it there in an editor / UI of your own choice.
The last option is to use the lightweight VS Code integration that GitHub has, by using the . (dot) key on your keyboard. That will give you a VS Code window in the browser which does not use the definition popups. The . key works anywhere from the Code tab in any repo.
Tip: you can also change the .com in the url to .dev, that'll do the same thing for you.

Neovim/Spacevim - Display Function/Method Name Cursor is Located in

I recently switched to using Neovim/Spacevim, and it's freakin' awesome! I have been trying to change some settings and install plugins to emulate as close as possible to my previous VSCode development environment.
I'm nearly there, except the only thing missing is one feature I really loved. In any file, wherever my cursor was located, at the top of the status bar in VSCode, it would display the function/method (or variable, object, etc.) name.
Does anyone know if this is possible in Neovim/Spacevim. If my cursor is located within a function named someFunction, how would I get someFunction to be displayed somewhere in the status bar? I am using the standard statusline bar, no plugins for that (though am willing to install one if it does what I need).

What is hotkey to manually check a C function api in vscode?

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.

Eclipse - netbeans style tab template completion

In NetBeans I can set up a bunch of templates such that typing psvm tab expands to
public static void main(String[] args) {
}
I see that Eclipse also has templates, but they are triggered in a different way - Ctrl-Space. But I don't see a way that you can have the template automatically triggered -instead, a popup appears and you pick which of the code completions to execute. Is there a way to make Eclipse pick the template that matches automatically, without showing that popup? In Netbeans it's a lot less intrusive to insert these code snippets, and I'm hoping it's possible to do the same in Eclipse. Any experts know for sure?
In Eclipse push Enter after typing the template name. The popup comes up quickly but you can STILL type.
Say your template name is: tr
type: tr[PUSH:ENTER] template will complete without the popup, or even if the popup comes up push enter to finish and make it go away.
Also do not name your templates the same name as a PHP keyword as the keyword is listed first
i.e
template name: function
typing: function
popup will come and list
function
function - Template
and you'll have to select the second one
if you named it: func then type func[enter] it'll autocomplete
I call my templates _m (for the main method), _o for System.out.println, etc. This way I only press the underscore, a letter, ctrl-space, and enter. I completely ignore the popup, since I know there's nothing there except for the one template I want. This way I get it separated.
You can assign a keybinding to templates on the Key preference page. Would this help as it reduces the set shown for a keybinding to templates only?
Also, do you realise typing main cntrl+space does the same as your example?

How do I jump to a method in RubyMine?

In Visual Studio, the editor has a drop-down list of functions in the current class; clicking on one will take me to the top of that function. Is there a way to get a similar behaviour from RubyMine?
I suggested this as a feature request to the folks at JetBrains, and within the day they got back to me to tell me about the 'File Structure Popup' on ^F12 which does very nearly what I want; it's an extra keypress but I can live with it.
If you're working on a Rails project, change the project view to Rails (change the View as: dropdown value)
Online help is here.
It looks like this is as close as it gets to the functionality you're looking for.
Ctrl+0 key in editor will show all methods with search capacity.
The same is drop-down menu Navigate -> File structure.