Amazon AI programming assistant CodeWhisperer

      Amazon CodeWhisperer is an AI programming assistant that helps developers improve by generating suggestions based on comments written by developers using natural language and code in the IDE (Integrated Development Environment) Work efficiency. With CodeWhisperer, developers no longer need to switch between IDEs and documentation or developer forums, speeding up the coding process. With CodeWhisperer's real-time code suggestions, developers can focus on working in the IDE and complete coding tasks faster.

        Amazon AWS overseas regional account free package_free cloud service-AWS cloud serviceAWS provides customers with free packages of a variety of products and services, which can be free after registering an account 12-month trial to help customers gain hands-on experience with AWS. Amazon CodeWhisperer

        CodeWhisperer is powered by a large language model (LLM) trained on billions of lines of code and has learned to write code in 15 programming languages. Developers only need to write comments that outline a specific task in plain English, such as "upload a file to Amazon S3." Based on this, CodeWhisperer automatically determines the cloud services and public libraries suitable for the given task, builds the specific code on the fly, and provides a snippet of code suggestions directly in the IDE. In addition, CodeWhisperer can seamlessly integrate with IDEs such as Visual Studio Code and JetBrains, allowing developers to focus on development without leaving the IDE. As of now, the development languages ​​supported by CodeWhisperer include Java, Python, JavaScript, TypeScript, C#, Go, Ruby, Rust, Scala, Kotlin, PHP, C, C++, Shell and SQL.

Advantages of CodeWhisperer

        The Accenture Velocity team has been using CodeWhisperer to accelerate its artificial intelligence (AI) and machine learning (ML) projects. Using CodeWhisperer brings the following advantages:

        ​ ​ · Teams spend less time creating boilerplate code and repeating code patterns, allowing more time to focus on important work such as improving software quality.

        ​ ​ · CodeWhisperer helps developers use AI responsibly to create grammatically correct, safe and reliable applications

        ​​​·Teams can generate complete functions and logical code snippets without having to search online or customize code

        ​ · Can help novice developers or developers who are not familiar with the code base get started quickly

        ​ ​ · Allowing teams to detect security threats early in the development process by front-loading security scans into the developer’s IDE

How to use CodeWhisperer

1. Open vscode, select the application bar on the left, search for "AWS", the following interface will be displayed, click "install" to install

2. After the installation is successful, the AWS logo will be displayed on the left. Click "start" under the "CodeWhisperer" directory. The following page will appear. Select the first option "use a professional e-mail to sign up in with AWS builder ID" ;

3. Select "copy code and proceed" in the pop-up interface.

4. Select "open" on the next pop-up interface.

5. Go to the following web interface, return to the pop-up window in step 4, select "copy", then select "open" to reopen, and paste the copied number in the "code"

6. Click "Next" and the email registration page will appear. Enter your email address, enter the email verification code, and set a password.

7. After registration, jump to the following page and click the “Allow” button on the last page.

8. The following page is displayed, which means the AWS builder ID registration is successful.

        CodeWhisperer is relatively slow to respond, and the code prompts are relatively simple, almost the same as the search results. Compared with Git Hub's Copilot, the latter responds more naturally and will provide optimization tips based on the original code, making it closer to programmers.

        The installation process of CodeWhisperer is relatively simple and easy to understand. When using it, you can directly fill in the comments and AI will automatically generate multiple codes (the more accurate the comments are, the more accurate the result will be). After generating the code, you can also manually choose whether to correct the results. Make a reservation or switch to the next code. You can also generate the function body after generating the function name. All in all, it is a relatively easy-to-use artificial intelligence programming software, but the results generated by AI cannot be completely perfect. It can be manually optimized and adjusted based on the results and used as an auxiliary tool.

Guess you like

Origin blog.csdn.net/m0_73367097/article/details/134199876