Showing custom roperties Key and Values in properties file

I have a properties file named

i have a pre-defined list of property keys and valid values for each key. When the user edits the file, the editor should show all possilbe keys and values as suggestion.

What is this feature called and how should I implement it? I don't want this to be done as a new custom editor. I am okay with exsiting properties editor.

Comment actions Permalink

Plz let me know if any info is required on this.

Comment actions Permalink

For the completion part, register a completion contributor for the Properties language and add completion providers for keys and values. Here's an example

public class MyCompletionContributor extends CompletionContributor {

public MyCompletionContributor() {
new MyCompletionProvider());

If you want to check validity of keys and values, I suggest to use an Annotator.


Please sign in to leave a comment.