Menu

"Go to definition" when clicking in a function

Javier
2018-01-18
2018-01-23
  • Javier

    Javier - 2018-01-18

    Hello,

    I love NppGTags but there is a functionality that I miss: "Go to definition" when clicking in a function like SourceCookifier does:

    It would be great to have it in NppGTags,

    Thank you and regards!
    Javi

     
  • Pavel Nedev

    Pavel Nedev - 2018-01-19

    Hi,

    I do not understand you well, sorry.
    Could you describe in more details (example would also help) what functionality you would like to have?

    Thanks for the feedback.

    BR

     
  • Javier

    Javier - 2018-01-22

    Hi,

    Thank you for your response and sorry for my bad explanation. I will try to explain it better with an example:
    Scenario
    Folder/File1.c:

    void function() {printf("Hello world 1!")}

    File2.c:

    void function() {printf("Hello world 2!")}

    Example.c:

    void function() {
    printf("Hello world example!");
    }
    int main() {
    function();
    }

    Then, if you press the key "CTRL" and click over the calling to "function()" then the result would be:

    The number between brackets is the line number

    I hope this time I explained it better.

    Thanks and regards,
    Javi

     

    Last edit: Javier 2018-01-22
  • Pavel Nedev

    Pavel Nedev - 2018-01-23

    Hi Javi,

    I understand you now, thanks for the explanation.

    Well, NppGTags has 'Go to Definition' command that does just that. It only places the results below the document (not in a pop-up window next to the cursor but in Notepad++ docking window). That makes it possible to colorize the results, search them, copy them, etc. and makes them more easy to navigate in case of many matches.

    BR

     

    Last edit: Pavel Nedev 2018-01-23

Log in to post a comment.

MongoDB Logo MongoDB