Configurable code completion list in custom language

Answered

In my plugin I have already a completion contributor class which contains some keywords for code completion.

Is there a way to get a customizable code completion list for users of my custom language plugin?

 

For example: The user of the plugin want to add something to the code completion list like "hello"

So everytime the user hits ctrl + space he will get the a list with all his added strings.



Thanks for your answers.

 

0
3 comments

for fixed (predefined) strings, users may configure Live Templates.

Settings 

   Editor

       Live Templates

also note the By default expand with ... options. 

 

for a custom language, a liveTemplateContext extension point needs to be added.

 

1

Cool, thanks. :)

0

Please sign in to leave a comment.