{"meta":{"title":"GitHub语言支持","intro":"功能支持的 GitHub 编程语言概述。","product":"开始","breadcrumbs":[{"href":"/zh/get-started","title":"开始"},{"href":"/zh/get-started/learning-about-github","title":"了解GitHub"},{"href":"/zh/get-started/learning-about-github/github-language-support","title":"GitHub语言支持"}],"documentType":"article"},"body":"# GitHub语言支持\n\n功能支持的 GitHub 编程语言概述。\n\n<!-- If you make changes to this article, also update any feature-level articles to reflect the same changes in language support. -->\n\n## 关于支持的语言\n\n大多数 GitHub 功能都起作用，无论代码编写的语言如何。 可以根据GitHub已知的任何语言搜索代码或启用语法高亮显示。 欲了解更多信息，请参阅 \\[AUTOTITLE]（/search-github/github-code-search/understanding-github-code-search-syntax#language-qualifier） 或 [创建和突显代码块](/zh/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks#syntax-highlighting)。\n\n某些 GitHub 产品具有目前仅支持一部分编程语言的功能。\n\nGitHub 功能的核心语言包括 C、C++、C#、Go、Java、JavaScript、Kotlin、PHP、Python、Ruby、Rust、Scala 和 TypeScript。 对于支持包管理器的功能，当前支持的包管理器及其相关语言包含在表中。\n\n某些功能支持其他语言或包管理器。 如果想要了解某个功能是否支持另一种语言或请求支持语言，请访问 [GitHub 社区讨论](https://github.com/orgs/community/discussions)。\n\n<!-- Source for the following tables lives in data/tables/supported-code-languages.yml -->\n\n## 在 github.com 和 GitHub Enterprise Cloud 中支持的核心语言\n\n|语言 | [GitHub Copilot](/zh/copilot/about-github-copilot/what-is-github-copilot) | [Code navigation](/zh/repositories/working-with-files/using-files/navigating-code-on-github) | [Code scanning](/zh/code-security/code-scanning/introduction-to-code-scanning/about-code-scanning) | [Dependency graph, Dependabot alerts](/zh/code-security/supply-chain-security/understanding-your-software-supply-chain/dependency-graph-supported-package-ecosystems#supported-package-ecosystems) | [Dependabot version updates, Dependabot security updates](/zh/code-security/dependabot/dependabot-version-updates/about-dependabot-version-updates#supported-repositories-and-ecosystems) | [GitHub Actions](/zh/actions/automating-builds-and-tests/about-continuous-integration#supported-languages) | [GitHub Packages](/zh/packages/learn-github-packages/introduction-to-github-packages#supported-clients-and-formats) | |：----|：----：|：----：|：----：|：----：|：----：|：----：|：----：|\n\n|\nC\n|✗\n|\n|✗\n|\n|\n|✗\n\\| |\n\n|\nC++\n|✗\n|\n|✗\n|\n|\n|✗\n\\| |\n\n|\nC#\n|✗\n|✗\n|✗\n|`dotnet` CLI\n|`dotnet` CLI\n|✗\n|`dotnet` CLI |\n\n|\nGo\n|✗\n|✗\n|✗\n|Go modules\n|Go modules\n|✗\n\\| |\n\n|\nJava\n|✗\n|✗\n|✗\n|Maven, Gradle\n|Maven, Gradle\n|✗\n|Maven, Gradle |\n\n|\nJavaScript\n|✗\n|✗\n|✗\n|npm, Yarn\n|npm\n|✗\n|npm |\n\n|\nKotlin\n|✗\n|✗\n|✗\n|Maven, Gradle\n|Maven, Gradle\n|✗\n|Maven, Gradle |\n\n|\nPHP\n|✗\n|✗\n|third-party [^1]\n|Composer\n|Composer\n|✗\n\\| |\n\n|\nPython\n|✗\n|✗\n|✗\n|pip\n|pip\n|✗\n\\| |\n\n|\nRuby\n|✗\n|✗\n|✗\n|RubyGems\n|RubyGems\n|✗\n|RubyGems |\n\n|\nRust\n|✗\n|✗\n|✗\n|✗\n|✗\n|✗\n\\| |\n\n|\nScala\n|✗\n|\n|third-party [^1]\n|Maven\n|Maven, Gradle\n|✗\n\\| |\n\n|\nSwift\n|✗\n|✗\n|✗\n|✗\n|✗\n|✗\n|Swift Package Manager |\n\n|\nTypeScript\n|✗\n|✗\n|✗\n|npm, Yarn\n|npm\n|✗\n|npm |\n\n> \\[!NOTE]\n>\n> ```\n>           语言支持 GitHub Copilot 因该语言的训练数据的量和多样性而异。\n> ```\n\nGradle 对依赖关系图的支持仅限于上传通过 Dependabot alerts 使用 依赖项提交 API 获取的数据。\n\n[^1]: PHP and Scala are supported for code scanning by third-party actions, but not by CodeQL."}