banner
andrewji8

Being towards death

Heed not to the tree-rustling and leaf-lashing rain, Why not stroll along, whistle and sing under its rein. Lighter and better suited than horses are straw sandals and a bamboo staff, Who's afraid? A palm-leaf plaited cape provides enough to misty weather in life sustain. A thorny spring breeze sobers up the spirit, I feel a slight chill, The setting sun over the mountain offers greetings still. Looking back over the bleak passage survived, The return in time Shall not be affected by windswept rain or shine.
telegram
twitter
github

AI self-evolution, learned to write code by itself!

In the previous code generation tool Copilot, it was generated based on a large amount of repository code by Github. If you are interested, you can refer to the article I wrote before. It includes installation and usage methods, etc. Since Copilot now requires payment, in order to find a more reasonable (free and easy to use) code generation tool to help me complete repetitive and tedious code, I have recently used several similar tools. Below are my experiences using these tools.
Since Copilot now requires payment, in order to find a more reasonable (free and easy to use) code generation tool to help me complete repetitive and tedious code, I have recently used several similar tools. Below are my experiences using these tools.
(PS: For more detailed content, you can check out this GitHub page:
https://github.com/llq20133100095/AICodeGeneration)

640

Tutorial#

1. Copilot#

  1. Installation: In the vscode software, find and install Github Copilot.

640 (1)
2. Usage
Auto-generation
In Python code auto-generation, just enter the "function name" + "English description", and Copilot will provide code suggestions based on the corresponding English description:

image
If you are not satisfied with the above code, Copilot can also be replaced using shortcuts:

640 (16)

Get more detailed suggestions
You can use the shortcut Ctrl+Enter to get more detailed assistance programming information from Copilot:

640 (2)

2. Tabnine#

640 (3)
2. Usage
Tabnine has both a free version and a paid version.
The free version can only help you complete the code you want:

640 (4)
The paid version can generate more lines of code and understand your contextual needs.

640 (5)

3. Mutable AI#

  1. Installation: In the vscode software, find and install Mutable AI.

640 (6)
Then it will prompt you to get the API key on the official website, and you can get it after logging in:

640 (7)
Then go back to vscode and enter the key.
2. Usage
Provide coding guidance
Select MutableAI: Give a coding instruction

640 (8)
Enter the content you need guidance on:

640 (9)
Code completion and generation

image

Code documentation generation

image

4. Cheat.sh#

  1. Installation: In the vscode software, find and install Snippet.

640 (10)
2. Usage:
Open the command line and find snippet to enter:

image

5. CodeGeeX#

  1. Installation: In the vscode software, find and install CodeGeeX.
    640 (11)
  2. Usage:
    Stealth mode
    In this mode, CodeGeeX will generate from the cursor when you stop typing (the CodeGeeX icon in the lower right corner will spin to indicate that it is generating). After the generation is complete, it will be displayed in gray, and you can insert the generated result by pressing Tab.

image
Interactive mode
In this mode, press Ctrl+Enter to activate the interactive mode, and CodeGeeX will generate X candidates and display them in the right window.
Translation mode
In the text editor of the current language, enter or paste code from another language. Select the code with the mouse, then press Ctrl+Alt+T to activate the translation mode. Choose the language of the code according to the prompt, and CodeGeeX will translate the code into code that matches your current editor language. Click "use code" above the translation result to insert it. You can also choose how to handle the translated code when inserting it in the settings, such as commenting or overwriting them.

image
Prompt mode (experimental feature)

In this mode, you can add additional prompts in the input to achieve some interesting functions, including but not limited to code explanations, summaries, and generating in specific styles. This mode utilizes CodeGeeX's powerful few-shot generation capability. When you provide some examples in the input, CodeGeeX will imitate these examples and implement the corresponding functions. For example, you can provide an example of explaining the code line by line in the custom template. Select the code you want to explain, press Alt/Option+t to trigger the prompt mode, and select the template you wrote (such as explanation), and CodeGeeX will explain the code you entered.

image

6. CodeWhisperer#

  1. Installation:
    There is currently no public version available, but you can go to the official website and join the waitlist for beta testing.

640 (12)
2. Usage:
Provide ready-made code

640 (13)
Detect vulnerabilities in the code and provide reference suggestions.

640 (14)

Overall Score#

640 (15)

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.