Amazon CodeWhisperer: AI programming assistant

Author of the article:prigioni

1. What is Amazon CodeWhisperer?

Amazon CodeWhisperer improves developer productivity by understanding comments written in natural language (English) and generating multiple code suggestions in real time. The service can give suggestions on entire functional and logical code blocks (typically containing up to 10-15 lines of code) directly in the code editor of the integrated development environment (IDE). The generated code is similar to the actual code you would write and conforms to the developer's personal style and naming conventions.

链接地址:[https://dev.amazoncloud.cn/experience/codewhisperer-1?sc_medi...]

Amazon Cloud Technology Developer Community provides developers with global development technology resources. There are technical documents, development cases, technical columns, training videos, activities and competitions, etc. Help Chinese developers connect with the world's most cutting-edge technologies, ideas, and projects, and recommend outstanding Chinese developers or technologies to the global cloud community. If you haven’t followed/collected it yet, please don’t swipe it hastily when you see this, click Here Let it become your technical treasure trove!

2. Operation steps

(1) Install the latest Amazon Cloud Technology Toolkit plug-in in the development environment (IDE). Supported IDEs include Visual Studio (VS) Code and JetBrains IDEs (IntelliJ, PyCharm, CLion, GoLand, WebStorm, Rider, PhpStorm, RubyMine, and DataGrip). CodeWhisperer has built-in Amazon Cloud9 and Amazon Lambda consoles.

(2) In Visual Studio, search for CodeWhisperer and click to install.

picture

Successful installation

picture

(3) Open the Amazon Cloud Technology extension panel, and then select the "Start" button under "Developer Tools" > "CodeWhisperer".

picture

Create your own ID

picture

picture

picture

The IDE will have a password, which must be entered into Amazon Cloud Technology on the web.

picture

Create an ID using your own email address

picture

picture

3. Case operation

Click CodeWhisperer to open it

picture

Take python's bubble sort as an example:

def maopaoSort, appears at this time

picture

Press Table to confirm

picture

When testing, type maopaoSort and it will be filled in automatically.

picture

Verification code passed

picture

Note: You can request suggestions at any time. Use Option-C on Mac or ALT-C on Windows. Once you receive a suggestion, use the TAB key to accept and the arrow keys to navigate.

4. Summary

(1) Easy installation: Amazon CodeWhisperer is a plug-in that is integrated into Visual Studio (VS) Code and JetBrains IDE (IntelliJ, PyCharm, CLion, GoLand, WebStorm, Rider, PhpStorm, RubyMine and DataGrip) and other commonly used IDEs. Installation very convenient.

(2) Ease of use: After starting the plug-in, you can wake it up to continue writing code when writing code. The centralized function I have tried so far has a good effect. I look forward to the subsequent experience. Supports multiple programming languages, including Java, Python, etc., allowing developers to use it flexibly in different projects.

Amazon CodeWhisperer not only improves development efficiency, but also reduces coding errors and maintenance costs.

文章来源:
https://dev.amazoncloud.cn/column/article/64f4291a2a1d01763ea44291?sc_medium=regulartraffic&sc_campaign=crossplatform&sc_channel=CSDN

Guess you like

Origin blog.csdn.net/u012365585/article/details/134995782