Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 869  / 2 Years ago, thu, june 16, 2022, 11:44:12

Is there any add-on or ability on geany or any known linux editor for this purpose : when you click on one variable . The mouse coursor goes to when it initialize.
My code is c language. what I am looking for is some thing like this: highlight one variable and then press one key or any act and finally the editor put your mouse cursor on the line which for the first time this argument define or initialize.


More From » programming

 Answers
2

If you are using geany, there is already functionality to jump to the definition of the variable/function. With the right key via the context menu, or by pressing ctrl+t (after selecting the item) you can jump to the definition.

Note: The only limitation is that the file that contains the definition must already be open in geany, otherwise it will not work.



Example:



Define variable:



define variable



Guake go to definition.



enter image description here



This work for type definition and functions; if you have to look for an instance of a variable within the document or project, you have to look for it as text.


[#24347] Saturday, June 18, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oredoise

Total Points: 66
Total Questions: 116
Total Answers: 111

Location: Lebanon
Member since Sun, Aug 2, 2020
4 Years ago
;