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-evolves and learns to write its own code!

In the previous code generation tool Copilot, it was generated by Github based on a large amount of repository code. If you are interested, you can refer to the article I wrote before. It includes installation, usage methods, etc. Since Copilot now requires payment, I have been looking for a more reasonable (free and easy to use) code generation tool to help me complete repetitive and boring code. Recently, I have also used several similar tools, and below are my experiences using these tools.

(PS: For more detailed content, you can check this GitHub page: https://github.com/llq20133100095/AICodeGeneration)

Tutorial:

  1. Copilot

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

  3. 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.
    • If you are not satisfied with the above code, Copilot can also be replaced using shortcuts.
    • Get more detailed suggestions: You can use the shortcut Ctrl+Enter to get more detailed programming assistance information from Copilot.
  4. Tabnine

  5. Installation: In the vscode software, find and install Tabnine.

  6. Usage:

    • Tabnine has a free version and a paid version. The free version can only help you complete the code you want.
    • The paid version can generate more lines of code and understand your contextual requirements.
  7. Mutable AI

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

  9. Usage:

    • Coding guidance: Select Mutable AI: Give a coding instruction and enter the content you need guidance on.
    • Code completion and generation.
  10. Cheat.sh

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

  12. Usage: Open the command line and enter "snippet" to activate it.

  13. CodeGeeX

  14. Installation: In the vscode software, find and install CodeGeeX.

  15. Usage:

    • Stealth mode: In this mode, CodeGeeX will generate from the cursor when you stop typing. After generation, it will be displayed in gray and can be inserted by pressing Tab.
    • 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.
    • 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 explanation, summarization, and generating in specific styles. CodeGeeX uses its powerful few-shot generation ability in this mode. When you provide some examples in the input, CodeGeeX will imitate these examples and implement the corresponding functions. For example, you can customize a template that provides an example of explaining code line by line. Select the code you want to explain, press Alt/Option+t to trigger the prompt mode, and select the template you have written (such as "explanation"), and CodeGeeX will explain the code you entered.
  16. CodeWhisperer

  17. Installation: Currently, there is no public version available, but you can go to the official website and join the waitlist for beta testing.

  18. Usage:

    • Customizing existing code.
    • Detecting vulnerabilities in the code and providing reference suggestions.

Overall rating:

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