Community

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

    auto-completion without ()

    Help wanted · · · – – – · · ·
    2
    4
    1945
    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.
    • ng khanh
      ng khanh last edited by

      Hi
      I want to show the auto completion suggestion without input “()”. Currently, suggestions are shown only after input “()”

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

        @ng-khanh

        When you have function completion enabled, you have to type the startFunc character to trigger the function help pop-up window. This is defined in the XML file describing the language of the active file (plugins\APIs\<language>.xml). Here is an example:

        <Environment ignoreCase="no" startFunc="(" stopFunc=")" paramSeparator="," terminal=";" additionalWordChar=""/>
        

        I don’t think there is any way to avoid this other than to edit the NPP source code to have whatever behavior you desire.

        1 Reply Last reply Reply Quote 0
        • ng khanh
          ng khanh last edited by

          @Jim Dailey: Thank for your suggestion. That approach requires a lot coding for amateur. Have any step-by-step guide for that ?

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

            @ng-khanh

            No, sorry.

            If the “(” is already present, then if you have the cursor somewhere inside the “(…)”, you can press Ctrl-Alt-Spacebar to bring up the function completion help window (if there is an entry in the XML for that function).

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright © 2014 NodeBB Forums | Contributors