Search
The search bar of GitCode is one of the core functions of the platform, playing a crucial role in helping users efficiently find and quickly access various resources.
How to Open the Search Bar
Users can directly click to open the search bar, or use the shortcut key "/" to quickly open the search bar.
Opening the search bar allows users to search for open source projects, organizations, and individuals.

Search Types
Search types include open source projects, search models and datasets, search issues and Pull Requests, and user and organization information.
1. Search for Open Source Projects
GitCode includes open source projects in multiple languages such as Java, PHP, and Go. You can quickly find the project you want by combining conditions such as "keywords", "development language", "number of project stars (Star)", "number of project forks (Fork)", and "project update time".

2. Search for Models and Datasets
- Enter a keyword in the search bar and press Enter.
- On the search results page, select the "Models" or "Datasets" tab to view results related to models or datasets.

3. Search for Issues and Pull Requests
- Enter a keyword in the search bar and press Enter.
- On the search results page, select the "Issues" or "Pull Requests" tab to view results related to issues or Pull Requests.

4. Search for Users and Organizations
- Enter a keyword in the search bar and press Enter.
- On the search results page, select the "Users" or "Organizations" tab to view results related to users or organizations.

Prefix Search
To plan for more comprehensive search capabilities in the future, the current tag search has been changed to prefix search. Currently, five prefixes are supported, and more search syntax support will be gradually added.

| Prefix | Meaning | Example | Notes |
|---|---|---|---|
repo | Repository | repo:atomgit_atomcode/atomcode | Project path |
org | Organization | org:atomgit_atomcode | Organization path |
lang | Language | lang:Rust | - |
path | Path | path:/docs/ | Only effective for code search |
symbol | Symbol | symbol:getuserlist | Only effective for code search |
Symbol refers to user-defined names such as method names, class names, variable names, etc.
Usage Examples
Example 1: Search for Rust language atom-related projects under the atomgit_atomcode organization
org:atomgit_atomcode lang:Rust atom

Example 2: Search for code snippets related to default in atomcode
repo:atomgit_atomcode/atomcode default

Example 3: Search for code snippets defined by build_messages in atomcode
repo:atomgit_atomcode/atomcode symbol:build_messages

Example 4: Search for code snippets in Rust language that contain both the definition of disabled_telemetry and the text atomcode_dir in atomcode
repo:atomgit_atomcode/atomcode lang:Rust symbol:disabled_telemetry atomcode_dir