How to exclude string literals from "Find in Files" (Ctrl+Shift+F) results in CLion?

Answered

I'm often using the "Find in Files" feature (Ctrl+Shift+F) to search across my project.
However, I want to exclude matches found inside string literals.

For example, given this line:

const char* text = "abcd";

When I search for "abc" using "Find in Files", this line shows up in the results.
But I want CLion to ignore matches inside string constants like this.

Is there a setting, filter, or plugin that allows me to exclude results from string literals in C++ files?

Thanks!

0
1 comment

Hello!

Please use the filter option “Except String Literals”:

0

Please sign in to leave a comment.