Getting started with Code Search  |  Google for Developers Skip to main content Code Search / English Deutsch Español Español – América Latina Français Indonesia Italiano Polski Português – Brasil Tiếng Việt Türkçe Русский עברית العربيّة فارسی हिंदी বাংলা ภาษาไทย 中文 – 简体 中文 – 繁體 日本語 한국어 Sign in Home Guides Reference Code Search Home Guides Reference Getting started Cross references Using search filters Searching for files Searching for file contents Searching by language Enabling case-sensitive searches Searching for classes Searching for comments Searching for functions Searching across line breaks Searching for symbols Searching for usages Using operators Using the AND operator Using the OR operator Additional tasks Excluding terms Escaping characters Searching for literals Grouping search terms Home Products Code Search Guides Getting started with Code Search Stay organized with collections Save and categorize content based on your preferences. Page Summary outlined_flag The Code Search UI has a search box at the top for finding files or code snippets. Searches use RE2 regular expressions by default unless enclosed in double quotation marks. Cross references are available in some repositories, linking symbols to their definitions and usages. You can search for files or file contents and learn more in the Code Search reference documentation. Introduction You can search for specific files or code snippets by using the search box located at the top of the Code Search UI: To get started, open the Code Search UI for your project: Android Chromium Other Google Projects: Google Open Source Text search All searches use RE2 regular expressions by default. If you don't want to use regular expressions, enclose your search in double quotation marks ( " ). For example: "foo()" # Treats the parentheses as literals. Doesn't match 'food'. foo() # Parentheses are treated as part of a regular expression. Matches 'food'. Note: If you use a search filter, such as file, don't enclose the filter in quotes. For example, use file:abd.xyz not file:"abc.xyz". Cross references Cross references are available for some repositories. Where cross references are enabled, symbols are links to their definition. Clicking a symbol definition shows a list of usages. What's next Search for files or file contents. Learn about supported operators, filters, and keyboard shortcuts in the Code Search reference documentation. Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Last updated 2023-10-18 UTC. [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-18 UTC."],[],[]] Supported products Android Chromium Google Open Source About Terms of Service Developer consoles Google API Console Google Cloud Platform Console Google Play Console Firebase Console Actions on Google Console Cast SDK Developer Console Chrome Web Store Dashboard Google Home Developer Console Android Chrome Firebase Google Cloud Platform Google AI All products Terms Privacy Manage cookies English Deutsch Español Español – América Latina Français Indonesia Italiano Polski Português – Brasil Tiếng Việt Türkçe Русский עברית العربيّة فارسی हिंदी বাংলা ภาษาไทย 中文 – 简体 中文 – 繁體 日本語 한국어