What are string matching algorithms used in text editors like Atom and sublime I know there are many algorithms for finding a pattern in a text like Boyer Moore, KMP, RabinKarp and so on.
I want to know what is the one that is mostly prefered by text editors and IDEs, as I find them efficient.
Since Emacs is the superior editor, you can take a look in the source code yourself:  search.c
Emacs uses the Boyer–Moore string-search algorithm, so that's probably what you should prefer too.