How to exclude string literals from "Find in Files" (Ctrl+Shift+F) results in CLion?
已回答
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!
请先登录再写评论。
Hello!
Please use the filter option “Except String Literals”: