Community
    • Login

    Possible to click on a MACRO and jump to its definition?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    7 Posts 3 Posters 1.7k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Paolo Santini104P Offline
      Paolo Santini104
      last edited by

      I’d like to know if NotePad++ is able to be set as other programming editor, i.e. can I click (or other keyboard or mouse combination) over a macro or a variable and jump directly to its definition?

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA Offline
        Alan Kilborn @Paolo Santini104
        last edited by

        @Paolo-Santini104

        You mean like from the Macro menu, maybe ctrl+click an entry and it will open/switchto shortcuts.xml and go right to the start of the macro definition in that file? Currently not possible, but I applaud your creative thinking. :)

        Or did you mean something totally different? In which case the applause is somewhat muted…

        1 Reply Last reply Reply Quote 2
        • PeterJonesP Offline
          PeterJones
          last edited by

          @Paolo-Santini104 said:

          click over a macro or a variable and jump directly to its definition?

          If you’re talking about clicking on an instance of a function (say, in a C source file) and going to that function’s definition in the same file … not directly. However, if you put your cursor on the function name and do Ctrl+F, it will populate the search box with that function name. Or if you use the View > Function List feature, you can use the Function List sub-window as a “Table of Contents”, to allow you to quickly get to the right function definition.

          If you want to be in source_file.1 and find the definition in any of source_file.2 … source_file.###: unfortunately the Function List (to my knowledge) doesn’t allow you to cross file boundaries.

          Alan KilbornA Paolo Santini104P 3 Replies Last reply Reply Quote 1
          • Alan KilbornA Offline
            Alan Kilborn @PeterJones
            last edited by

            @PeterJones

            I think I was off-base in my interpretation…but I like the idea it generated! :)

            1 Reply Last reply Reply Quote 3
            • Paolo Santini104P Offline
              Paolo Santini104 @PeterJones
              last edited by

              @PeterJones said:

              @Paolo-Santini104 said:

              If you want to be in source_file.1 and find the definition in any of source_file.2 … source_file.###: unfortunately the Function List (to my knowledge) doesn’t allow you to cross file boundaries.

              Exactly this !!! Very useful where set. I use it in QtCreator and it makes easy my work.

              1 Reply Last reply Reply Quote 1
              • Alan KilbornA Offline
                Alan Kilborn @PeterJones
                last edited by

                @PeterJones said:

                If you want to be in source_file.1 and find the definition in any of source_file.2

                One could do Find in Files or Find All in All Opened Documents for this…but isn’t this handled better by one of the “tagging” plugins (which I don’t use)?

                Paolo Santini104P 1 Reply Last reply Reply Quote 2
                • Paolo Santini104P Offline
                  Paolo Santini104 @Alan Kilborn
                  last edited by

                  @Alan-Kilborn said:

                  @PeterJones said:

                  If you want to be in source_file.1 and find the definition in any of source_file.2

                  One could do Find in Files or Find All in All Opened Documents for this…but isn’t this handled better by one of the “tagging” plugins (which I don’t use)?

                  It’s the only solution (at the moment…)

                  1 Reply Last reply Reply Quote 0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • First post
                    Last post
                  The Community of users of the Notepad++ text editor.
                  Powered by NodeBB | Contributors