Autocompletion with MyClass.myFunc
-
Hi,
I want to make my custom Autocompletion file (aka API)
It should provide autocompletion for <class>.<function>
For example if I type “MyU” it should first suggest me “MyUtils”, and after i select that, it should suggest me all the functions from this Class, for example “MyUtils.readString()”.
Is that possible with API files?
And an additional question: is NPP capable of handling large API files with ~ functions?
Thanks in advance!
-
@Eko-palypse will give you best suggest
i think a custom dll can do this autocomplete without ‘python script’ -
or you can solve your Q yourself
-
I think that after you select
MyUtils, you will have to type a period for the autocomplete to begin suggesting things that begin withMyUtils.. Other than that, I would expect it to work as you desire.I don’t think size will be a problem for you. My “C” auto-completion file is almost
3.5 Megabytesand works very well. Currently it includes3230 UEFI function definitionsextracted from .h files and463 keywords! Obviously I didn’t do this by hand; I wrote an AWK script that I use to generate a new (updated) auto-completion file periodically.Keep in mind that you have to keep the entries sorted alphabetically. If you get something out of order, then you may never see a portion of your entries (but you will not get any kind of error message).
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login