go to definition gedit plugin - ctags

Is there a "go to definition" plugin in gedit?

if i ask google, this is the first hit:
Hello Friends,
I have developed a plug-in coded in a
python for the auto-completion and go
to definition features.
go to definition --- this feature
provide the user to jum to to the
definition of variable. In the right
click menu "Go to definition" option
is provided to the user.
[...]

Related

How to navigate to a certain type

I am looking for a way to navigate straight to a certain type of Go in VSCode. Specifically, a shortcut equivalent to :
CTRL+SHIFT+N in Intellij
CTRL+SHIFT+T in Eclipse
... both for Java code.
(When I say "straight to..." I mean from anywhere you are in VSCode, and not being already on a given type in code editor and use hover shortcuts - like F12. sure that one works fine)
I have already browsed... some links are talking about shortcut CTRL+T : but it does not the job as waited.
For instance i tried to navigate to type "Scanner" - which is in bufio/scan.go - but CTRL+T does not lead to this type in GO file.
Have you any workaround?
Assuming VSCode has indexed your project and you have the ms-vscode.go plugin installed, you can use the "Go to Symbol in Workspace" feature to navigate to types and functions in your workspace. Read more in the documentation.
As you mentioned, this does not find types outside of your workspace.
Press ⌘T or find "Go to Symbol in Workspace" under the "Go" menu.

Add Cmd+Click navigation to definition in Atom editor with Golang?

Does anyone know if it's possible to jump around code in a project by Control/Cmd+Click? I keep right-clicking and doing "Go to Definition" but that doesn't seem to work.
The "Go to Definition" option is built-in to Atom and requires ctags, which is a bit of work to set up for Go. Instead, you can install the navigator-go package, which will allow you to jump to definition with a keyboard shortcut.
If you prefer cmd+click as opposed to a keyboard shortcut, you can also install:
go-hyperclick **
hyperclick
* Note: navigator-go was recently renamed, and go-hyperclick still points at the old repo, so you may get some warnings about a missing package until this PR is merged.

Geany Class member Sidebar

In eclipse, when I open a file there is a sidebar which shows me all of the methods and global variables in the file. Is there a way I can get similar functionality for Geany?
Geany shows this one the sidebar as well, it's on a tab labeled "Symbols".
You can see an example here:
What I'm not sure about is which languages it supports. It has worked with every language I have tried so far (JavaScript, Java, C, Python, C++) but it doesn't seem to always work.
You can open the Symbols-sidebar by selecting "Preferences" in the Edit-menu. In the "Interface" tab, check "Show symbol list".

Type ahead autocompletion in Eclipse

Do Eclipse have a plugin for type ahead autocompletion like Visual Studio, so I don't have to destroy my spacebar by pressing Ctrl+Space all the time? (If you don't know how it works in Visual Studio, please don't bother answering.)
And also, can I limit the autocomplete to imported packages, rather than every single Java class on earth? It's fustrating seeing suggestions from awt and swing etc., when I'm working with GWT. And I don't want to add every single Java class to the filter, that's just stupid. (Again, like how it's done in Visual Studio!)
Regarding your second part, yes you can
Open Eclipse
Select Window/Preferences from the menu
Expand Java/Appearance/Type Filters from the menu on the left
Click the "Add package" button, enter "java.awt" (without the quotes) and click OK
OK your way out
This will make Eclipse remove any matching classes from the java.awt package from your type ahead list. Very nice...
So "type-ahead" exists in Eclipse (mentioned in this status report in June 2006), but is synonym of auto-completion, most often triggered by CTRL+ Space... (which is not exactly what you are looking for)
To be more specific, the kind of automatic auto-completion (completion while you are typing, with a "Common" or "All" list of possible completions) you have in Visual Studio is not there in Eclipse (actually read below):
Original answer January 2010:
At least, not without a dedicating plugin.
And even with that plugin, it would have to follow a TemplateCompletionProcessor, meaning it would need a list of characters triggering said completion (again, not what you are looking for), by redefining method getCompletionProposalAutoActivationCharacters().
Update November 2011:
Cristi mentions in his answer (upvoted) a great workaround, which consists adding all the letters as Auto activation triggers for java.
See also "Automatically opening completion window in Eclipse".
From the thread "Eclipse auto-completion ":
Windows -> Preferences -> Java -> Editor -> Content Assist
Set delay to: 0 (actually >0 is better: 50, it avoids CPU picks because of constant listening)
Set triggers to:
.(abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUV WXYZ#
My answer may come too late, but maybe will help others searching this feature in eclipse.
This workaround works for me (eclipse helios):
Go to Windows -> Preferences -> Java -> Editor -> Content Assist.
Here, enable Auto activation and set Auto activation delay to a low value, let's say 50 ms.
Then comes the workaround: In Auto activation triggers for java, simply put all the characters: abcdefghijklmnopqrstuvwxyz.
And there you go, just type something.
Completion is triggered when pressing ".", if that is what you are referring to as "type-ahead autocompletion". This is what Visual Studio also does, unless you are referring to another Visual Studio feature I'm unaware of.
Limiting completion to only imported packages I think is a somewhat unorthodox thing to do; you are forced to rely on wildcard imports to define the set of types to complete on. I think most users would consider that less than useful. You're welcome to elaborate on your use case for this, though. For example, why would you want to exclude all Java classes from completion?
BTW, using "type filters" (as VonC suggests) doesn't require you to add every single class. I typically (globally) exclude java.awt.*, sun.com.*, org.omd.*, and a few others. Eclipse also sorts completion according to a (type-sensitive) heuristic which usually results in the most relevant types being displayed at the top. For example, auto-completion inside a method call will put the variables which matches the method type signature at the top.
I know that Claus spoke of Java in the second part of his question, but the general question is about any language in Eclipse (no Java tag here), so the following might be of use to python eclipse coders:
Go to Windows -> Preferences -> PyDev -> Editor -> Code Completion. Here, check the box next to "Request completion on all letter chars and '_'?".
(Purposefully similar to Cristi's answer.)

Does Eclipse have this extensibility Feature like Visual Studio without any coding?

In Visual Studio you can add an external tool and pass it the selected text as parameter.
Does eclipse have the same kind of feature or are one obliged to code a plugin for that ?
If so, any specific code sample to do just that because all I found is general sample plugin for custom editor.
In the menu, go to : Run > External Tools > External Tools Configuration.
This will open a dialog in which you can create external tools configuration (to execute external programs from Eclipse) :
(source: pascal-martin.fr)
At the bottom of the dialog, there is a region for "Arguments", and a button called "Variables". If you click on this one, you have a liste of variables you can use.
Of of those is "selected_text", which "Returns the text currently selected in the active editor." :
(source: pascal-martin.fr)
This should allow you to launch pretty much whatever program you want/need, directly from Eclipse, without having to create any plugin ;-)
ONly thing is those programs will not be quite well integrated in Eclipse -- but still usefull !
Sure, they are even called "External Tools". look in Run->External Tools.
Actually, start by typing "External Tools" into the Eclipse Help search box.
Eclipse has the kitchen sink, do you think they would leave this out? :-)
As a side note might be added, that the possibility to add external tools was one of the key features of the eclipse platform once it was brought up back in the days. VisualAge had a big problem with external tools.

Resources