How can I enable auto complete support in Notepad++?

前端 未结 8 2101

I am trying to add simple syntax highlighting and auto completion for a simple scripting language...

I added syntax highlighting using this article

Now I wan

相关标签:
8条回答
  • 2020-12-07 10:10

    Go to

    Settings -> Preferences -> Backup/Autocompletion

    • Check Enable auto-completion on each input. By default the radio button for Function completion gets checked, that will complete related function name as you type. But when you are editing something other than code, you can check for Word completion.

    • Check Function parameters hint on input, if you find it difficult to remember function parameters and their ordering.

    0 讨论(0)
  • 2020-12-07 10:11

    You can also add your own suggestion.

    Open this path:

    C:\Program Files\Notepad++\plugins\APIs
    

    And open the XML file of the language, such as php.xml. Here suppose, you would like to add addcslashes, so just add this XML code.

    <KeyWord name="addcslashes" func="yes">
        <Overload retVal="void">
            <Param name="void"/>
        </Overload>
    </KeyWord>
    
    0 讨论(0)
  • 2020-12-07 10:12

    The link provided by Mark no longer works, but you can go to:

    Notpad++ 6.6.9

    • Settings -> Preferences -> Auto-Completion -> Enable auto-completion on each input.

    I find it very annoying though, since a big autocomplete block is always coming up and I would just like to see autocomplete when I press tab or a key combination. I am fairly new to Notepad++ though. If you know of such a key combination, please feel free to reply. I found this question via Google, so we can always help others.enter image description here

    0 讨论(0)
  • 2020-12-07 10:14

    Autocomplete in Notepad++ is as simple as hitting Ctrl + Enter or Ctrl + Space in the interface.

    Ctrl + Enter - as simple as that!

    This, for many people, will be better than autocompleting on everything.

    0 讨论(0)
  • 2020-12-07 10:18

    Open Notepad++ and Settings -> Preferences -> Auto-Completion -> Check the Auto-insert options you want. this link will help alot: http://docs.notepad-plus-plus.org/index.php/Auto_Completion

    0 讨论(0)
  • 2020-12-07 10:19

    It is very easy:

    1. Find the XML file with unity keywords
    2. Copy only lines with "< KeyWord name="......" / > "
    3. Go to C:\Program Files\Notepad++\plugins\APIs and find cs.xml for example
    4. Paste what you copied in 1., but be careful: Don't delete any line of it cs.xml
    5. Save the file and enjoy autocompleting :)
    0 讨论(0)
提交回复
热议问题