Android Question IDE, How to search (CTRL+F) when there are tabs?

vecino

Well-Known Member
Licensed User
Longtime User
Hello, when there are tabs, Ctrlf+F does not find anything.
Example:

B4X:
Dim cTest As String
cTest="1"
cTest ="2"           ' space
cTest  ="3"          ' space space
cTest    ="4"        ' tab
cTest        ="5"    ' tab tab
cTest            ="6"' tab tab tab

If I search for cText___=" it doesn't find "4","5","6" because they are tabulators, not spaces.

Is it possible to save tabulators as spaces?
Thanks
 

vecino

Well-Known Member
Licensed User
Longtime User
Hi, I've always wondered what F7 is for.
And apart from that, what is it for?
Because if I do a search with Ctrl+F or F7 for any variable, the results are the same.
(If there are no tabulators)
Thank you.
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
Hi, I've always wondered what F7 is for.
And apart from that, what is it for?
Because if I do a search with Ctrl+F or F7 for any variable, the results are the same.
(If there are no tabulators)
Thank you.
F7 allows you to find occurrences of variables or routines names and also to change them in one go.

CTRL+F allows you to search any sequence of chars.
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
I don't understand the difference, with Ctrlf+F you can also search for routines (you mean "Sub"?) and you can rename whatever you are looking for.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Find all references = F7, is very different from a text based search. It finds all usages of a variable or a sub (and a few other things).
It is based on the compiler output.

For example, for a local variable (ttt in S1), it knows that the same named local variable in a different sub, has nothing to do with this one.
1635310333805.png


This is a very useful feature in large projects.
 
Upvote 0

Mahares

Expert
Licensed User
Longtime User
I also like F3 which gets a bum rap, but very useful. I have been trying to make the F3 highlighted words background in yellow to differentiate it from others searches by looking in b4xV5.ini file, but could not figure out which line to change.
 
Upvote 0
Top