Community
    • Login

    Autocompletion with MyClass.myFunc

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    autocompletionclassautocomplete
    4 Posts 3 Posters 787 Views
    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.
    • m-c0deM
      m-c0de
      last edited by

      Hi,

      I want to make my custom Autocompletion file (aka API)

      It should provide autocompletion for <class>.<function>

      For example if I type “MyU” it should first suggest me “MyUtils”, and after i select that, it should suggest me all the functions from this Class, for example “MyUtils.readString()”.

      Is that possible with API files?

      And an additional question: is NPP capable of handling large API files with ~ functions?

      Thanks in advance!

      1 Reply Last reply Reply Quote 0
      • rinku singhR
        rinku singh
        last edited by

        @Eko-palypse will give you best suggest
        i think a custom dll can do this autocomplete without ‘python script’

        1 Reply Last reply Reply Quote 0
        • rinku singhR
          rinku singh
          last edited by

          or you can solve your Q yourself

          1 Reply Last reply Reply Quote 0
          • Jim DaileyJ
            Jim Dailey
            last edited by

            @m-c0de

            I think that after you select MyUtils, you will have to type a period for the autocomplete to begin suggesting things that begin with MyUtils.. Other than that, I would expect it to work as you desire.

            I don’t think size will be a problem for you. My “C” auto-completion file is almost 3.5 Megabytes and works very well. Currently it includes 3230 UEFI function definitions extracted from .h files and 463 keywords! Obviously I didn’t do this by hand; I wrote an AWK script that I use to generate a new (updated) auto-completion file periodically.

            Keep in mind that you have to keep the entries sorted alphabetically. If you get something out of order, then you may never see a portion of your entries (but you will not get any kind of error message).

            1 Reply Last reply Reply Quote 3
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors