New

Extend SF Code search with multi line search

  • 9 July 2020
  • 4 replies
  • 58 views

Userlevel 3
Badge +3

I often look for strings in code that spans multiple lines.

I think it would be cool if the SF Code search can search for the input string that span multiple lines. With that functionality i can find specific patterns that must be changed.


4 replies

Userlevel 5
Badge +4

What do you think should happen when the text you are looking for is present, but contains extra spaces, tabpages etc (in front of, in between of, or after the code). A simple example:

search string

select *

from tab

code

select *

  from tab

Should this code be in the result (so all spaces, tabs etc. should be ignored) or not?

Userlevel 3
Badge +3

When searching the extra white space characters (spaces, tabs, new lines, etc) should be ignored.

Userlevel 3
Badge +3

I have never had the need to search for exact white space occurrences. But if others do want to search for exact white space maby add an option where we can toggle the ignore white space on and off.

Userlevel 6
Badge +8

Would it help if we would enable wildcards in the search string?

Then you would be able to search for select%from%tab, for example.

Reply