Skip to content
CodioNovember 11, 2013< 1 min read

Global Search and Replace

One big omission from Codio so far has been powerful search and replace functionality across your entire project. We've had search and replace in files, but up until now it's not been possible to search across all files within your project. Well, we've corrected this now.

global search dialog

Globs and pattern matching

As well as being able to search on simple strings across the entire project, you can use glob pattern matching.

The above image shows how you can look for matches of the word step in all js files across the whole project. Or, you could look for all files ending in .html or .coffee in just the lib folder:

lib/*{.html,.coffee}

Matches

Once the search operation has completed, you will see all files listed in a Codio tab. Simply double click on the highlighted match to open up that file in a new tab.

global search dialog

We've open sourced some stuff

In doing this, we decided to open source the back-end search capabilities. SnR is a Node application and uses ack and perl to provide a powerful way to search within code.

avatar

Codio

Codio is the evidence-based platform for building mastery in computing education.