Source: https://juejin.cn/post/7223746457941508157
Amazon CodeWhisperer, a real-time AI programming assistant, is now officially available, including the CodeWhisperer personal package, which is free for all developers. Originally launched in preview last year, CodeWhisperer keeps developers focused and productive, helping them write code quickly and safely without interrupting the flow by leaving the IDE to work on something. Developers can increase productivity and simplify their work by using CodeWhisperer within their favorite IDEs, including Visual Studio Code, IntelliJ IDEA, and more, when creating code for complex and ever-changing environments. When creating code for routine tasks or time-consuming, undifferentiated tasks, using unfamiliar APIs or SDKs, using AWS APIs correctly and efficiently, and other common coding scenarios (such as reading and writing files, image processing, writing unit tests, etc.), CodeWhisperer can help.
Also provides reference code tracking, which provides additional suggested data when generating code similar to the training data
CodeWhisperer is also the only AI coding assistant with a security scanning feature that finds hard-to-detect vulnerabilities and recommends fixes, scans generated code and code written by developers, looking for vulnerabilities
Currently, all developers can use Amazon CodeWhisperer to write Python, Java, JavaScript, TypeScript, C#, Go, Rust, PHP, Ruby, Kotlin, C, C++, Shell scripts, SQL and Scala code, just need to register by email .
Instructions
register
First choose the IDE, which supports vs code and jetbrains, here we take vscode as an example
![6fd61744fc4f0accdb4e2622ca627eb6.jpeg](https://img-blog.csdnimg.cn/img_convert/6fd61744fc4f0accdb4e2622ca627eb6.jpeg)
Install the aws toolkit
![e29e564925eb320b8edd1d1523d0eeaa.jpeg](https://img-blog.csdnimg.cn/img_convert/e29e564925eb320b8edd1d1523d0eeaa.jpeg)
Registration and certification can be used
![a97a3d141e578c41b54684fe7b84b25e.jpeg](https://img-blog.csdnimg.cn/img_convert/a97a3d141e578c41b54684fe7b84b25e.jpeg)
Click start, and a pop-up window will pop up, copy and open the link, and register by email.
![4331c39b8e63c496fdfc70881ac542ae.jpeg](https://img-blog.csdnimg.cn/img_convert/4331c39b8e63c496fdfc70881ac542ae.jpeg)
![ae2c82c2c4e49aba4f9cd39dfe79cc83.jpeg](https://img-blog.csdnimg.cn/img_convert/ae2c82c2c4e49aba4f9cd39dfe79cc83.jpeg)
start using
![06c47ca85e5afaba1decf6c5b6a68c06.jpeg](https://img-blog.csdnimg.cn/img_convert/06c47ca85e5afaba1decf6c5b6a68c06.jpeg)
Taking windows as an example, alt+c
it is to generate code and tab
receive the generated code, and the left and right arrows are the candidates generated before and after selection. Here we take quicksort as an example. When you enter def quicksort()
and then enter alt+c, the following code will be generated. You can see that it is a code written based on recursion.
![1806c43d05708ae734cac22907c1394b.jpeg](https://img-blog.csdnimg.cn/img_convert/1806c43d05708ae734cac22907c1394b.jpeg)
Use tab
to receive
![54ae12eeeb129625625fa83427b220e2.jpeg](https://img-blog.csdnimg.cn/img_convert/54ae12eeeb129625625fa83427b220e2.jpeg)
reference
aws.amazon.com/cn/blogs/ch…
docs.aws.amazon.com/codewhisper…
------
We have created a high-quality technical exchange group. When you are with excellent people, you will become excellent yourself. Hurry up and click to join the group and enjoy the joy of growing together. In addition, if you want to change jobs recently, I spent 2 weeks a year ago collecting a wave of face-to-face experience from big factories. If you plan to change jobs after the festival, you can click here to claim it !
recommended reading
The world's largest open source alternative to ChatGPT is here!
Wu Enda replied to Musk: The car has not been invented yet, what seat belt do you need?
··································
Hello, I am DD, a programmer. I have been developing a veteran driver for 10 years, MVP of Alibaba Cloud, TVP of Tencent Cloud. From general development to architect to partner. Along the way, my deepest feeling is that we must keep learning and pay attention to the frontier. As long as you can persevere, think more, complain less, and work hard, it will be easy to overtake on curves! So don't ask me if it's too late to do what I do now. If you are optimistic about something, you must persevere to see hope, not to persevere only when you see hope. Believe me, as long as you stick to it, you will be better than now! If you have no direction yet, you can follow me first, and I will often share some cutting-edge information here to help you accumulate capital for cornering and overtaking.