• Login
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.
  • N
    ng khanh
    last edited by Jan 11, 2017, 8:47 AM

    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
    • J
      Jim Dailey
      last edited by Jan 11, 2017, 1:31 PM

      @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
      • N
        ng khanh
        last edited by Jan 12, 2017, 10:31 PM

        @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
        • J
          Jim Dailey
          last edited by Jan 13, 2017, 12:40 PM

          @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
          1 out of 4
          • First post
            1/4
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors