Q:

Replace the property value in the placeholder in a java attribute - IntelliJ 2017.2

I noticed that IntelliJ replaces the value of the property in the placeholder. When the mouse is over the value this shows the name of the property, this works well with XML files.

I like this functionality and I was wondering if is there any way to do the same in java attributes? for example:
class:
@Service
public class PropertyService {

    //@Value("My demo App")
    @Value(${project.name})
    private String projectName;

}

application.properties
project.name=My demo App

A:

At the moment it works only in XML files, I've submitted a request to add support for other file types (like Java and Kotlin). Please follow YouTrack ticket for updates.

