IntelliJ IDEA
 
Get IntelliJ IDEA
You are viewing the documentation for an earlier version of IntelliJ IDEA.

Search templates

Last modified: 21 September 2023

When you construct a template for a structural search you are basically writing a script. To simplify your scripting process, IntelliJ IDEA offers you a list of predefined search templates that you can use as prototypes for your search template.

Search templates dialog

On how to access the list of the existing search and replace templates, see the structural search and replace section.

Each search or replace template consists of variables $variable_name$ to which you can add a condition (modifier) to narrow your search results. Modifiers depend on a variable in your search template.

A search template preview