Tongyi Lingma

Alibaba's free AI coding assistant, powered by the Tongyi large model

Listada em

O que é Tongyi Lingma?

Tongyi Lingma is a free AI coding assistant from Alibaba, built on the Tongyi large model to help developers boost both coding speed and code quality. It packs a range of practical capabilities: intelligent code completion that generates suggestions in real time based on context, and natural-language-to-code generation that turns plain-language requirements into working code. It can also auto-generate code comments, explain code logic, and help troubleshoot errors and exceptions. Tongyi Lingma supports offline single-line completion, so some features keep working even when the network is restricted. It also offers technical documentation and code snippet search, letting developers quickly find reference material from within mainstream IDEs.

Como usar o Tongyi Lingma

  1. Install Tongyi Lingma from a plugin marketplace:
  2. JetBrains IDEs: Download and install a compatible JetBrains IDE (version 2020.3 or later). Open the IntelliJ IDEA settings window, search for Lingma in the plugin marketplace, find Tongyi Lingma, and click Install. Restart IntelliJ IDEA once the installation finishes.
  3. Visual Studio Code: Download and install Visual Studio Code 1.68.0 or later. Open the Extensions window, search for Lingma, find Tongyi Lingma, and click Install. Restart Visual Studio Code after installation.
  4. Visual Studio: Download and install Visual Studio 2022 17.3.0 or later, or Visual Studio 2019 16.3.0 or later. Open the Extensions > Manage Extensions window, search for Lingma, find Tongyi Lingma, and click Install. Restart Visual Studio once installation is complete.
  5. Install from a downloaded package: Visit the official Tongyi Lingma website and download the zip package for JetBrains IDEs. Open IntelliJ IDEA, go to plugin management in the settings, choose to install a plugin from disk, locate the downloaded zip file, and install it. Restart IntelliJ IDEA when finished.
  6. Sign in and initialize: After restarting the IDE, click the Tongyi Lingma icon in the right-hand toolbar to open the plugin panel. First-time users need to sign in with an Alibaba Cloud account; clicking the sign-in button opens the Alibaba Cloud login page in your browser, and you can return to the IDE once you have signed in.
  7. Use the core features:
  8. Intelligent code completion: While you write code, Tongyi Lingma offers context-aware completion suggestions to help you finish faster. You can also trigger code suggestions manually with Alt + P (Windows) or Option + P (macOS).
  9. Code explanation: Select a code snippet, right-click, and choose Tongyi Lingma > Explain Code to get a detailed explanation. Alternatively, select code in the editor and click the code explanation button, and the AI will generate an explanation based on the code.
  10. Unit test generation: Right-click the Tongyi Lingma icon in your code and choose Generate Unit Tests, and it will automatically produce the corresponding test code. You can copy the generated tests straight into your test file and adjust or debug them as needed.
  11. Code optimization and refactoring: Tongyi Lingma analyzes your code and offers optimization suggestions to improve quality and performance.
  12. Natural-language-to-code: Describe what you need in plain language (for example, "write a user login function"), and Tongyi Lingma will attempt to convert it into code.
  13. Comment generation: Select a code snippet, right-click, and choose Tongyi Lingma > Generate Comments to add comments quickly. You can also use the Shift+Alt+V shortcut or pick the code comment option from the right-click menu.
  14. Tips for getting the most out of it:
  15. Configure the plugin: After installation, open the Tongyi Lingma settings page to adjust options such as auto-completion delay and language preferences.
  16. Explore the features: Tongyi Lingma supports many programming languages, so try its features across different projects to get comfortable with how it works.
  17. Keep it updated: Stay on the latest versions of both the plugin and your IDE to get the newest features and improvements.
  18. Add context: In the smart chat, you can add context in several ways: click the add-context button in the input box to open the context picker; type # in the input box to open the context picker and keep typing to search files; or drag and drop, or copy and paste, code files and images to add them as context (JetBrains IDEs only).
  19. Supported context types: Tongyi Lingma offers several context options, including file, folder, image, codebase, teamDocs, codeChanges, and gitCommit.

Recursos principais do Tongyi Lingma

  • 1

    Line and function-level real-time completion

    While you code, it predicts and generates suggested code based on context and current syntax, and you can accept it with a single press of the Tab key.

  • 2

    Natural-language-to-code generation

    Describe the functionality you want in plain language inside the editor, and it generates code and related comments directly in the editor based on your description and context, keeping your coding flow uninterrupted.

  • 3

    Code optimization

    It helps identify problems in your code and provides suggestions for optimizing it.

  • 4

    Unit test generation

    It supports generating unit tests and explanations of test-related code based on frameworks such as JUnit, Mockito, Spring Test, unit test, and pytest.

  • 5

    Multimodal image Q&A

    You can add images as context by selecting, dragging, or pasting them, and it analyzes the image content to generate code suggestions, bug fixes, and more based on your description.

  • 6

    Code comment generation

    Generate method comments and inline comments in one click, saving you the time of writing them yourself while improving code readability and comment coverage.

  • 7

    Code explanation

    It recognizes more than 30 languages and can auto-detect the programming language of selected code to generate an explanation, helping you quickly understand code logic and design across language boundaries.

  • 8

    Developer smart Q&A

    Trained on a vast body of development docs, product documentation, general engineering knowledge, Alibaba Cloud service docs, and SDK/OpenAPI documentation, it answers your questions and helps you solve development problems with ease.

  • 9

    Local project Q&A

    Through Q&A, you can quickly build an understanding of the current repository and query code. You can also describe requirements in natural language and get overall fix suggestions and sample code for simple features or defects based on the current project.

  • 10

    Enterprise knowledge base Q&A

    Leverage your company's knowledge and data to quickly build an enterprise development Q&A assistant, boosting your team's productivity and collaboration.

  • 11

    Error and exception troubleshooting

    It helps developers track down exceptions and errors in their code. When something goes wrong, Tongyi Lingma can suggest possible solutions to help you quickly locate and resolve the problem.

  • 12

    Offline single-line completion

    When the network is limited or unavailable, developers can switch to local completion mode, and Tongyi Lingma provides single-line code suggestions so your work is never interrupted by connectivity issues.

  • 13

    Technical documentation and code snippet search

    In supported IDEs such as IntelliJ IDEA and PyCharm, developers can search technical documentation and code snippets directly, quickly finding the material they need and working more efficiently.

  • 14

    Project Rules configuration

    Developers can customize code generation rules to fit their project, such as code style, tech stack constraints, and security rules. This helps keep team code style consistent and reduces the communication overhead and maintenance burden caused by differing personal styles.

  • 15

    Unified license management

    It supports granting usage permissions to developers across an enterprise and managing team member permissions centrally.

  • 16

    Usage statistics and reports

    It provides statistics such as developer activity, the share of AI-generated code, and Q&A usage, helping companies quickly gauge adoption and impact.

  • 17

    RepoWiki

    It can automatically generate a structured knowledge document for your codebase covering module relationships, interface definitions, and implementation logic, so the AI truly understands your project architecture rather than viewing files in isolation.

Casos de uso do Tongyi Lingma

  • 1

    Individual development

    Tongyi Lingma intelligently predicts and completes code based on context, reducing the amount you type and speeding up your coding.

  • 2

    Team collaboration

    Teams can consolidate coding standards, security guidelines, and code documentation into Tongyi Lingma's enterprise knowledge base, so members' code generation and optimization stay closely aligned with business needs.

  • 3

    Code refactoring and architecture changes

    During enterprise technology architecture changes, Tongyi Lingma helps complete component replacements efficiently while preserving system quality and consistency.

  • 4

    Enterprise customer service

    Tongyi Lingma can help enterprises automate intelligent customer service and answer users' frequently asked questions.

Mais em Ferramentas de Programação com IA

Ver tudo
Ferramentas de Programação com IA
Ferramentas de Programação com IA
Ferramentas de Programação com IA
Ferramentas de Programação com IA