Searching code
Using the search bar
The developer portal includes full-text code search across all repositories you have access to. Start typing in the search bar to find code, comments, file names, and more.
Basic search
Enter a term and press Enter to search:
function myFunction # Search for function names parseJSON # Search for any term "exact phrase" # Search for exact phrase match
Advanced search syntax
Use these operators to refine your search:
File and repository filters
file:README # Search only in files named README file:.ts$ # Search only in .ts files repo:my-app # Search only in repo named "my-app" path:src/components # Search in a specific directory
Language filters
lang:javascript lang:python lang:csharp
Content-specific searches
"TODO" # Find TODO comments "FIXME" # Find FIXME markers "error handling" # Search for error handling patterns
Combining filters
file:.ts$ lang:typescript calculatePrice repo:my-app file:src myFunction
What you can search
The search index includes:
- Source code from all branches
- Comments and documentation
- File and directory names
- Commit messages (coming soon)
Authorization and access control
You only see results from repositories you can access.If you don't have access to a private repository, you won't see its code in search results. Public repositories are searchable by anyone.
Takedown policy and DMCA
The search respects takedown requests and DMCA notices. If code has been removed from a repository due to a valid takedown request, it will not appear in search results.
If you believe code in a repository violates your intellectual property rights, file a takedown request.
Performance tips
- Be specific. Searching for "app" will match thousands of results. Use
file:orlang:to narrow it down. - Use exact phrases. Wrap terms in quotes for exact matches:
"parseJSON"instead ofparse JSON. - Filter by repository. If you know which repo contains what you're looking for, use
repo:name.
Examples
Find all error handlers
file:.ts$ "catch"
Find deprecated API calls
"deprecated" OR "DEPRECATED"
Search in a specific app's repository
repo:my-awesome-app calculatePrice
Find all configuration files
file:config file:(.json$ OR .yaml$ OR .yml$)
Limitations
- Search is updated periodically, not instantly. New commits may take a few minutes to appear in search results.
- Very large repositories may take longer to index. Contact support if you experience delays.
- Binary files (images, executables) are indexed by name but not by content.
Reporting search issues
If you find a search result that seems wrong, or if code you expect to find isn't appearing, contact support with details about what you're searching for.