intellij-ideayaml

How to find specific property key in a yaml file using intellij idea?


I have YAML file containing for example below text

server:
  port: 8084
  session:
    timeout: 600

Assuming there are many yaml files each containing a lot of lines, it is difficult to find certain key, for example 'server.session.timeout'.

I tried to find it using ctrl+shift+f it won't work because of new line characters and 'port' property betweeen.

Is there a way to find property keys in yaml files?


Solution

  • Thanks to Dmytro's comment I found a working solution. It is possible to find proprerties by path expression (dot separated) in yaml files using "Search everywhere" option. It can be invoked by pressing shift key twice or by invoking search menu (by pressing ctrl+n) and selecting 'all' tab.

    enter image description here