I have a massive file, of length more than 4000 lines. There are more than 200 variables declared, and some of the variables are really badly defined: For example,
int s;
int waste;
Now, I need some tool that helps me find every mention of the variable s
. I can't use ctrl+F
because that would give me every mention of the letter s
, rather than every mention of the variable s
. So, s
would get detected in waste
as well.
For example, when I search for s
, I want this to get detected:
if(abc == 2 && s == 3)
But this should not be detected:
if(abc == 2 && waste == 3)
I'm currently using Notepad++
, and would like to know if there's any feature on Notepad++
that would allow me to do this.
If not, can you suggest any other editor / tool / software that would do this for me?
If I have something like:
int x;
struct a
{
int x;
int y;
} st;
And I wan't to find only all occurrences of the x
declared outside the struct
, then the ctrl+F match whole word
feature of Notepad++
would not work, because even st->x
would be matched.