How to provide code assistance on custom properties files?

Answered

I'm working on a library and would like IntelliJ to provide code assistance for .conf or .properties files like it does for Spring Boot. Can anyone guide me on how to do this?

0
4 comments

Hello,

Could you please clarify the issue? What kind of code assistance do you need?

0

So I'm working on a Groovy library and I want users to be able to change settings by modifying an application.properties file with properties such as

server.port=8080
server.host=localhost
# etc.

What I would like is that when the user types `server.` they'll get code suggestions for the port and host property names. For reference, this sort of thing happens when using the Spring Boot library.

I'd like to know how to enable this sort of functionality for my library's application.conf file.

0

This option comes from language support. So, you need some plugin that will parse your file and provide suggestions.

1

Ok this looks like it'll be quite the weekend project. Thanks for the guidance.

0

Please sign in to leave a comment.