How to increase the max keyword dropdown size?



  • As you can see from this GIF
    http://i.imgur.com/PLADyjq.gif

    By default notepad++ only can show max of 5 items within the lists.
    Since I added alot of custom keywords …

    is there a way for me to increase the dropdown size to maybe 15~30 ?
    Where can I find the setting for this?



  • Nothing is built in by default, however, you can do it with a plugin. Install LuaScript via the PluginManager, edit it’s startup script and add this:

    editor1.AutoCMaxHeight = 15
    editor2.AutoCMaxHeight = 15
    

    save and restart N++.



  • hi thx for the info… is this only work for specific language like “LUA language” since it’s named as LuaScript here?

    Where can I find more info about those variable that I can be used in the script?
    any documentation for all the variables?
    editor1.AutoCMaxHeight = 15
    editor2.AutoCMaxHeight = 15

    what’s the “editor1” and “editor2” refer to ?

    Edit:
    these i guess…
    https://dail8859.github.io/LuaScript/



  • is this only work for specific language

    Lua is just used to control Scintilla features that are not exposed by Notepad++, but it will work for any language.

    what’s the “editor1” and “editor2” refer to ?

    Since Notepad++ can have two files open side-by-side it has 2 “editor” instances refered to as “editor1” and “editor2”. So setting both editors makes sure that if you move a file to another view it still works correctly.

    these i guess…https://dail8859.github.io/LuaScript/

    Yes that’s the official documentation.


Log in to reply