Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 918
Wojciech Wirzbicki Avatar asked May 29 '18 05:05

Wojciech Wirzbicki


People also ask

Where is YAML file in IntelliJ?

Open the properties file. Right click on editor region. Select 'Generate Yaml File' option.

Where can I find idea properties?

Locate the idea. properties file in the bin directory in IntelliJ IDEA's installation directory. The default location is C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 10.5. 1/bin.


1 Answers

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

like image 152
Wojciech Wirzbicki Avatar answered Oct 17 '22 06:10

Wojciech Wirzbicki