IntelliJ IDEA 2016.3 Help

Edit Variables. Complete Match Dialog

This feature is supported in the Ultimate edition only.

Edit | Find | Search Structurally | Edit variables | Complete Match


Use the Complete Match dialog to define constraints for the entire pattern that you have specified in the search template.

ItemDescription
Text constraintsIn this area define the constraints of the selected variable regarding text. In case of Complete Match this area might not be useful.

The constraints are as follows:

  • Text/regular expression - in this text box, type a perl-like expression or a class name to be used as a variable constraint. Basic code completion is available for class names.
  • Invert condition - select this check box to have the text pattern inverted.
  • Apply constraint within type hierarchy - select this check box to have the search according to the pattern performed both in type names and in parents (within the hierarchy).
  • Whole words only - when this check box is selected, only whole words within text are matched. This option recognizes string literals and comments.
Contained in constraintsIn this area, define additional constraint pattern inside the already defined search template. Specify the pattern in the text box or click the /help/img/idea/2016.3/browseButton.png button to open the Existing Templates dialog box. Invert condition - select this check box to have the value of the corresponding field changed to the opposite one.
Script constraintsIn this area, define a variable constraint via a script. Specify the script in the text box or click the /help/img/idea/2016.3/browseButton.png button to open the Edit Groovy Script Constraint dialog box. The constraint is applied after the initial matching process is finished.
This variable is target of the searchIf this check box is selected, the search results will show not the entire expression but the selected variable(s) only.

See Also

Last modified: 21 March 2017