About supported languages
Most 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 . For more information, see Understanding Code Search syntax or Creating and highlighting code blocks.
Some products have features that are currently only supported for a subset of programming languages.
Core languages supported by features
Core languages for 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 Community discussions.
Language | Copilot | Code navigation | Code scanning | Dependency graph, Dependabot alerts | Dependabot version updates, Dependabot security updates | Actions | Packages |
---|---|---|---|---|---|---|---|
C | |||||||
C++ | |||||||
C# | dotnet CLI | dotnet CLI | dotnet CLI | ||||
Go | Go modules | Go modules | |||||
Java | Maven, Gradle | Maven, Gradle | Maven, Gradle | ||||
JavaScript | npm, Yarn | npm | npm | ||||
Kotlin | Maven, Gradle | Maven, Gradle | Maven, Gradle | ||||
PHP | third-party | Composer | Composer | ||||
Python | pip | pip | |||||
Ruby | RubyGems | RubyGems | RubyGems | ||||
Rust | third-party | ||||||
Scala | third-party | Maven | Maven, Gradle | ||||
Swift | Swift Package Manager | ||||||
TypeScript | npm, Yarn | npm | npm |
Примечание.
- The language support for 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.
- PHP, Rust, and Scala are supported for code scanning by third-party actions.