CodeGeeX, an AI programming assistant that everyone can use

Video version:Ai programming assistant that everyone can use - CodeGeeX

Hello everyone, my name is Ling Lan.

It has been almost a year since AI became popular. As programmers, we have to prepare an AI to help us do some work. This article shares an AI tool, CodeGeeX, to help everyone improve their learning and work efficiency.

What is CodeGeeX

CodeGeeX is a domestic AI product. Some people say it is the best domestic tool among domestic tools that benchmarks GitHub CoPilot.

It has the following advantages:

  1. Free and open source: all code and model weights are open source and open source
  2. No network restrictions: no ladder required, no network restrictions
  3. Multi-language generation: supports code in multiple mainstream programming languages ​​such as Python, C++, Java, JavaScript and Go.
  4. Supports multiple IDE plug-in integration: CodeGeeX supports multiple mainstream IDEs, such as VS Code, IntelliJ IDEA, PyCharm, Vim, etc.

How to use CodeGeeX

Install

CodeGeeX supports a variety of mainstream IDEs, here we take VS Code as an example.

First open VS Code and switch to the expanded search CodeGeeX keyword.

After the installation is complete, there will be an additional CodeGeeX logo icon in the menu bar.

Before using CodeGeeX, you must first go to the CodeGeeX official website to register an account. However, there is no direct entrance to the personal center on the official website, which must be entered through a plug-in.

After registration is completed, we can experience CodeGeeX.

CodeGeeX has four major functions:

  • Intelligent Q&A
  • code translation
  • Annotation generation
  • Code generation and completion

Let’s demonstrate it to everyone.

CodeGeeX: Intelligent Q&A

Directly in the input box, fill in the questions you want to ask before sending.

In addition, you can select the code block on the right and customize the query content in the input box.

CodeGeeX: Code Translation

Switch to code translation, which can help us convert the original code into other languages.

For example, now I want to translate the JavaScript code snippet on the right into other language code snippets. If the mouse selects the code snippet in the editing area, it can directly bring the js code snippet to the left input box.

Translated into Python:

Translated to C++:

CodeGeeX: Annotation generation

There are two types of people that annoy me the most: those who don’t write comments and those who ask me to write comments. When we want to be lazy and not write comments, we only need to enter /comment in the input box, and CodeGeeX will directly generate comments for us.

Doesn’t it make you happy just thinking about it? Finally, no one scolded me secretly for not writing comments.

removed/comment,还有/tests、/fixbug、/explain.

  • /testsGenerate test code
  • /fixbugHelp us fix bugs
  • /explainexplain code

CodeGeeX: Code generation and completion

Now I want CodeGeeX to write a js version of a function that randomly generates a number.

Method 1: Fill in the content of "Write a js version of a function that randomly generates a number" in the input box before sending.

Method 2: Write a comment in the file "Write a js version of a function that randomly generates a number", and then add a space. CodeGeeX will generate a piece of code under the comment, and you can use the Tab key on the keyboard to decide whether to use it.

Summarize

CodeGeeX is a free AI tool for individual users. It can help us write faster and higher-quality code and is a real AI programming assistant.

A great AI tool and don’t consider network limitations!!!

Follow the official account [Programmer Ling Lan] and reply "666", which will bring you into the [Human high-quality front-end communication group~]
Past recommendations: linglan01.cn/about

Guess you like

Origin blog.csdn.net/qq_45472813/article/details/134940321