Community
    • Login

    auto-completion without ()

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 2 Posters 2.2k 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.
    • ng khanhN
      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 DaileyJ
        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 khanhN
          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 DaileyJ
            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
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors