Updated on 2026-06-24 GMT+08:00

Code Navigation

Introduction

Bidirectional mappings are established between named entity definitions and entity references through visualized display and hyperlinks. You can quickly locate, navigate, and understand the code structure and logic of calls.

Constraints

Table 1 Constraints on configuring repository code navigation

Item

Description

Programming language

C, C++, Go, Java, JavaScript, PHP, Python, Ruby, and Rust

Function

When code symbol indexes are generated, the following types of code files are excluded:

  • Empty files
  • Files larger than 350 KB
  • Code lines with more than 1,024 characters
  • Binary files
  • Repositories larger than 1 GB
  • Multi-line files larger than 4,096 bytes

Permission

The set permission on the repository is required. For details, see Configuring Repo-Level Permissions.

Setting Code Navigation

Go to the Code Navigation page of the repository to be configured as a user with the configuration permission on the repository, as shown in the following figure. Enable the code navigation function.

Helpful Links

  • If the size of the current repository exceeds 1 GB, an error message may be displayed, indicating that the file symbol outline and repository indexing are unavailable, as shown in the following figure.

  • If the size of a code file exceeds 350 KB, for example, 672.24 KB, as shown in the following figure, an error message is displayed, indicating that the file symbol outline is unavailable and the current file is excluded.