跳到主要内容

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.


Users can directly click to open the search bar, or use the shortcut key "/" to quickly open the search bar.

Image Opening the search bar allows users to search for open source projects, organizations, and individuals.

Image

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".

Image

2. Search for Models and Datasets

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

Image

3. Search for Issues and Pull Requests

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

Image

4. Search for Users and Organizations

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

Image


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.

Image

PrefixMeaningExampleNotes
repoRepositoryrepo:atomgit_atomcode/atomcodeProject path
orgOrganizationorg:atomgit_atomcodeOrganization path
langLanguagelang:Rust-
pathPathpath:/docs/Only effective for code search
symbolSymbolsymbol:getuserlistOnly 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

Image

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

repo:atomgit_atomcode/atomcode default

Image

Example 3: Search for code snippets defined by build_messages in atomcode

repo:atomgit_atomcode/atomcode symbol:build_messages

Image

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

Image

Example 5: Search for code snippets in Rust language in atomcode where the file name contains state and the content contains ContextSnapshot

repo:atomgit_atomcode/atomcode lang:Rust path:state* ContextSnapshot

Image