Page 1 of 1
Find/Replace - exclude constants
Posted: Sat Feb 26, 2011 10:01 pm
by spikey
Similar to the "Don't search in Comments" tick box on the Find/Replace dialog - I'd like to see a "Don't search in Constants" tick box, to ignore constant names.
Re: Find/Replace - exclude constants
Posted: Wed Mar 02, 2011 3:55 pm
by Tenaja
Since constants always start with #, just check Whole Words only. You may have to s/r several times if you have several vars including the same phrase, but this will avoid constants.
Re: Find/Replace - exclude constants
Posted: Sat Mar 05, 2011 4:15 pm
by spikey
That's the whole point, I can't use the Whole Words setting. This is an issue when refactoring code, as I'll be replacing partial words in the code - but, seeing as the constants have mostly have come from PB in the first place, the likelihood of me wanting to change them is low - so I'd like to be able to ignore them completely to save time in the process.
Re: Find/Replace - exclude constants
Posted: Sat Mar 05, 2011 4:42 pm
by Tenaja
Sounds like you need to use regular expressions--I use them in Notepad++.
I'd help, but use them so seldomly that I have to read up every time I do.