Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

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

    Help wanted · · · – – – · · ·
    3
    7
    587
    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 Santini104
      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 Kilborn 1 Reply Last reply Reply Quote 0
      • Alan Kilborn
        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
        • PeterJones
          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 Kilborn Paolo Santini104 3 Replies Last reply Reply Quote 1
          • Alan Kilborn
            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 Santini104
              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 Kilborn
                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 Santini104 1 Reply Last reply Reply Quote 2
                • Paolo Santini104
                  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
                  • First post
                    Last post
                  Copyright © 2014 NodeBB Forums | Contributors