Search & Replace

Lets you perform string Search & Replace operations during formatting.

Figure 2.94. Search & Replace settings page

Search & Replace settings page

Scope

Lets you configure the elements for which Search & Replace should be performed.

String Literals

Enables Search & Replace for string literals. Please note that you first need to define at least one pattern in order to be able to enable Search & Replace! See the section called “Patterns” for information on adding patterns.

Since 1.7

Example 2.866. String literal

String literal = "String literals are enclosed in double quotes";

Single-line comments

Enables Search & Replace for single-line comments. Please note that you first need to define at least one pattern in order to be able to enable Search & Replace! See the section called “Patterns” for information on adding patterns.

Since 1.7

Example 2.867. Single-line comment

// Single-line comments are similar like in C++

Multi-line comments

Enables Search & Replace for multi-line comments. Please note that you first need to define at least one pattern in order to be able to enable Search & Replace! See the section called “Patterns” for information on adding patterns.

Since 1.7

Example 2.868. Multi-line comment

/* Multi-line comments are similar like in C/C++ */

Javadoc comments

Enables Search & Replace for Javadoc comments. Please note that you first need to define at least one pattern in order to be able to enable Search & Replace! See the section called “Patterns” for information on adding patterns.

Since 1.7

Example 2.869. Javadoc comment

/**
 * Javadoc comments are basically multi-line comments using
 * a special notation
 */