简体   繁体   中英

Notepad++ adding words to autocomplete

I want to add some Keywords to Notepad, so when I start typing he notepad will list hello,hero for example. I have found this tutorial Notepad Tutorial(docs)

But I don't want to add a whole method, I just want that word to be automatically completed by Notepad++.

Just for persons who are wondering why I need this: I will work a lot with .yml-files where I have lots of keywords and it costs a lot of time looking up all these words when I write a file.

You found the correct documentation on how to add keywords, you don't have to add the whole method. You can use auto closing xml to simplify it

<NotepadPlus>
 <AutoComplete>        
    <KeyWord name="await" />
    <KeyWord name="base" />
    <KeyWord name="bool" />
    <KeyWord name="break" />
 </AutoComplete>
</NotepadPlus>

The name of the file has to be the same as the name of the language and needs to be in the Program Files/NotePad++/plugins/APIs folder. Keep in mind the list must be in alphabetical order or it will break without warning.

我没有 api 文件夹,想在我的自动完成中添加单词我正在使用记事本 ++ 的便携式版本,可以请一些 1 帮助我吗?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM