Tongyi Lingma

アリババが提供する、通義大規模言語モデルを搭載した無料のAIコーディングアシスタント

掲載日

Tongyi Lingma とは?

Tongyi Lingmaは、アリババが提供する無料のAIコーディングアシスタントです。開発者のコーディング速度とコード品質の両方を向上させるため、通義大規模言語モデルを基に開発されています。文脈に基づいてリアルタイムで提案を生成するインテリジェントなコード補完機能や、自然言語の要件を実際に動作するコードに変換する自然言語→コード生成機能など、実用的な機能を多数搭載しています。さらに、コードコメントの自動生成、コードロジックの解説、エラーや例外のトラブルシューティング支援も行います。 ネットワークが制限された環境でも一部の機能が利用できるオフライン単行補完にも対応しています。その他、技術ドキュメントやコードスニペットの検索機能も提供しており、主要なIDE内からすばやく参考資料を探すことができます。

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.

Tongyi Lingma の主な機能

  • 1

    行・関数レベルのリアルタイムコード補完

    コーディング中の文脈と現在の構文をもとに、次に記述するコードを予測して提案します。Tabキーを1回押すだけで提案を採用できます。

  • 2

    自然言語からのコード生成

    実装したい機能をエディタ内で自然言語で記述するだけで、記述内容と周囲の文脈に合わせてコードと関連コメントを直接エディタ上に生成します。コーディングの流れを中断することなく作業を進められます。

  • 3

    コード最適化

    コード内の潜在的な問題点を特定し、改善するための具体的な提案を行います。

  • 4

    単体テスト生成

    JUnit、Mockito、Spring Test、pytestなどのフレームワークに対応した単体テストと、テストコードの解説を自動生成します。

  • 5

    マルチモーダル画像Q&A

    画像の選択・ドラッグ&ドロップ・貼り付けでコンテキストとして追加でき、画像の内容を解析して、記述した要件に合わせたコード提案やバグ修正案を生成します。

  • 6

    コードコメント生成

    ワンクリックでメソッドコメントやインラインコメントを生成します。自前でコメントを記述する時間を削減し、コードの可読性とコメント覆盖率を向上させます。

  • 7

    コード解説

    30以上のプログラミング言語に対応し、選択したコードの言語を自動検出してロジックの解説を生成します。言語の違いを超えて、コードの仕組みや設計をすばやく理解するのに役立ちます。

  • 8

    開発者向けスマートQ&A

    豊富な開発ドキュメント、製品ドキュメント、一般的なエンジニアリング知識、Alibaba Cloudのサービスドキュメント、SDK/OpenAPIドキュメントを学習データとして構築されており、開発に関する質問に答え、問題解決を支援します。

  • 9

    ローカルプロジェクトQ&A

    Q&Aを通じて現在のリポジトリの内容をすばやく把握し、コードに関する問い合わせを行えます。また、自然言語で要件を記述すると、現在のプロジェクトに基づいて、簡単な機能や不具合に対する全体的な修正提案とサンプルコードを取得できます。

  • 10

    エンタープライズナレッジベースQ&A

    自社のナレッジやデータを活用して、エンタープライズ向けの開発Q&Aアシスタントをすばやく構築でき、チームの生産性と協働性を向上させます。

  • 11

    エラー・例外トラブルシューティング

    コード内の例外やエラーの原因究明を支援します。問題が発生した際、Tongyi Lingmaが考えられる解決策を提案し、すばやく問題を特定・解決できるよう導きます。

  • 12

    オフライン単行補完

    ネットワークが制限されている、または利用できない環境では、ローカル補完モードに切り替えることができ、Tongyi Lingmaが単行のコード提案を提供します。接続の問題で作業が中断されることがなくなります。

  • 13

    技術ドキュメント・コードスニペット検索

    IntelliJ IDEAやPyCharmなどの対応IDE内から、技術ドキュメントやコードスニペットを直接検索でき、必要な資料をすばやく見つけて作業効率を高めます。

  • 14

    プロジェクトルール設定

    コードスタイル、技術スタックの制約、セキュリティルールなど、プロジェクトに合わせたコード生成ルールを開発者がカスタマイズできます。チーム内のコードスタイルを統一し、個人のスタイルの違いによるコミュニケーションコストや保守の負担を削減します。

  • 15

    統合ライセンス管理

    企業全体の開発者に利用権限を付与し、チームメンバーの権限を一元的に管理することを支援します。

  • 16

    利用状況の統計・レポート

    開発者のアクティビティ、AI生成コードの割合、Q&Aの利用状況などの統計情報を提供し、企業がツールの導入状況や効果をすばやく把握できるようにします。

  • 17

    RepoWiki

    コードベースに対してモジュールの関係性、インターフェース定義、実装ロジックを網羅した構造化されたナレッジドキュメントを自動生成します。AIがプロジェクトのアーキテクチャを単体のファイルを個別に見るだけでなく、全体として理解することを可能にします。

Tongyi Lingma の活用例

  • 1

    個人開発

    Tongyi Lingmaが文脈に基づいてコードをインテリジェントに予測・補完し、入力するコードの量を削減してコーディングを高速化します。

  • 2

    チーム協働

    チームのコーディング標準、セキュリティガイドライン、コードドキュメントをTongyi Lingmaのエンタープライズナレッジベースに集約することで、メンバーが生成・最適化するコードを業務要件に密接に連携させることができます。

  • 3

    コードリファクタリング・アーキテクチャ変更

    企業の技術アーキテクチャ変更時に、Tongyi Lingmaがコンポーネントの置き換えを効率的に完了させ、システムの品質と一貫性を維持します。

  • 4

    エンタープライズカスタマーサポート

    Tongyi Lingmaが企業のインテリジェントカスタマーサポートを自動化し、ユーザーのよくある質問への回答を支援します。

AIコーディングツール のその他のツール

すべて見る
AIコーディングツール
AIコーディングツール
AIコーディングツール
AIコーディングツール