An AI tool that automatically writes code, and already supports the installation and use of VsCode plug-ins

The AI ​​tool for automatically writing code already supports the installation and use of VsCode plug-ins. Its function is not "code completion", but "code generation".

There was a relatively popular GitHub Copilot before, but it was a commercial product, and it was not open source, and now it has been sued again.

GitHub Copilot is facing a class-action lawsuit and was claimed 64.7 billion, which must have been heard by everyone.

To sum up, the use of open source code blatantly violates the open source agreement. The key is to rely on other people's open source code to make money. Being hammered is also expected.

Is there any open source and easy-to-use AI coding tool?

CodeGeeX, here we come!

CodeGeeX

CodeGeeX is open sourced by the Knowledge Engineering Laboratory (KEG) of Tsinghua University. And the tool has been launched in VSCode.

insert image description here

Friends who want to learn how to train AI to write code automatically can refer to this project.

Its function is not "code completion", but "code generation".

It can automatically generate a piece of code based on your description or context. It currently supports many mainstream programming languages ​​such as Python, C++, Java, JavaScript, and Go, and performs well in terms of code generation accuracy.

In addition to generating code, it also supports code translation, that is, it can automatically translate Python code into C++ and other languages.

At present, it mainly supports 4 usage methods, and the following uses VS Code as an example to introduce them one by one.


Stealth mode
Simply put, after you enter a description, and then stop typing, CodeGeeX will start generating code from the point where the cursor stops according to the context.

If there are multiple suggestions, you can use "Alt/Option+" to switch between different suggestions, and you can insert suggestion content through Tab.

For example, if you enter "write a bubble sort function", it will suggest a bubble sort function:

insert image description here

Interactive mode
As the name suggests, it adds an interactive interface on the basis of stealth mode.

Clicking Ctrl+Enter will open an interactive interface on the right, so that the suggestions given by CodeGeeX will be displayed on the right interactive interface.

We can click "Use Code" to select the corresponding code snippet.

insert image description here

Translation mode
We can arbitrarily copy a piece of code written in another language, then select the code, click "Ctrl+Alt+T" to activate the translation mode, select the target language, and then translate this code to the corresponding language.
insert image description here

Prompt mode
In prompt mode, some additional prompt information can be entered to trigger some interesting functions, such as code explanation, generalization, specific style, etc., which utilizes a few-shot generation capability.

insert image description here


Project address: https://github.com/THUDM/CodeGeeX

Guess you like

Origin blog.csdn.net/u014374009/article/details/128770121