[go: up one dir, main page]

Skip to main content

GitHub language support

An overview of the programming languages supported by GitHub features.

About supported languages

Most GitHub features work regardless of which languages your code is written in. You can search for code or enable syntax highlighting based on any language known to GitHub. For more information, see Understanding GitHub Code Search syntax or Creating and highlighting code blocks.

Some GitHub products have features that are currently only supported for a subset of programming languages.

Core languages for GitHub features include C, C++, C#, Go, Java, JavaScript, Kotlin, PHP, Python, Ruby, Rust, Scala, and TypeScript. For features that support package managers, the currently supported package managers are included in the table with their relevant languages.

Some features are supported for additional languages or package managers. If you want to know whether another language is supported for a feature or to request support for a language, visit GitHub Community discussions.

Core languages supported in GitHub.com and GitHub Enterprise Cloud

LanguageGitHub CopilotCode navigationCode scanningDependency graph, Dependabot alertsDependabot version updates, Dependabot security updatesGitHub ActionsGitHub Packages
C
C++
C#dotnet CLIdotnet CLIdotnet CLI
GoGo modulesGo modules
JavaMaven, GradleMaven, GradleMaven, Gradle
JavaScriptnpm, Yarnnpmnpm
KotlinMaven, GradleMaven, GradleMaven, Gradle
PHPthird-party 1ComposerComposer
Pythonpippip
RubyRubyGemsRubyGemsRubyGems
Rust
Scalathird-party 1MavenMaven, Gradle
SwiftSwift Package Manager
TypeScriptnpm, Yarnnpmnpm

Note

The language support for GitHub Copilot varies depending on the volume and diversity of training data for that language. The support of Gradle for the dependency graph and Dependabot alerts is limited to the upload of data obtained using the dependency submission API.

Footnotes

  1. PHP and Scala are supported for code scanning by third-party actions, but not by CodeQL. 2