Amazon CodeWhisperer 代码提示——Golang 测评

人工智能
机器学习
Amazon CodeWhisperer
云上探索实验室
0
0
> 文章作者:衝鋒壹号 ### 前言 [Amazon CodeGuru](https://aws.amazon.com/cn/codeguru/?trk=cndc-detail) Reviewer 中的 CodeWhisperer 是一种代码提示工具,它使用[机器学习](https://aws.amazon.com/cn/machine-learning/?trk=cndc-detail)和人工智能技术来提高开发人员的代码质量和效率。它可以通过分析代码库中的历史代码和最佳实践,为开发人员提供有关如何改进其代码的建议。您可以在亚马逊云科技控制台上启用 CodeGuru Reviewer,并将其与您的代码库集成,以获得 CodeWhisperer 的建议。 ### 获取插件 通过 Amazon 官网可知可以通过 Jetbrains 开发工具插件商店搜索下载,通过官网操作指南配置一下即可使用,附上官网链接 https://aws.amazon.com/cn/codewhisperer/resources/?trk=cndc-detail#Getting_started?trk=cndc-detail ### 使用体验 安装方便,注册完账号即可体验。 ![image.png](https://dev-media.amazoncloud.cn/4535c4489fbb49518593a15fca499975_image.png "image.png") 新版 UI 部分工具位置与老 UI 页面不一致,在左边里面需要手动拖出一下,不然配置的时候不好找! ![image.png](https://dev-media.amazoncloud.cn/3c4077b37edc408b884063190946a9ed_image.png "image.png") 完成配置就是这样。 ![image.png](https://dev-media.amazoncloud.cn/0f4c2600acbc420f8ad304a31c6a130b_image.png "image.png") 有代码提示,可以通过方向键选择不同的代码预测。不需要复杂的快捷键去检测,即写即预测。 ![image.png](https://dev-media.amazoncloud.cn/5ab31356e4ce4d9c977b0a8364777a44_image.png "image.png") 可以根据函数名称预测代码。 ![image.png](https://dev-media.amazoncloud.cn/e9923368068a44e7bcdaa145932c804a_image.png "image.png") 可以说只要你用 [Amazon CodeWhisperer](https://aws.amazon.com/cn/codewhisperer/?trk=cndc-detail) 越多,让他越了解你,那么它的代码提示就会越准确,毕竟他在学习你写代码。 ### 总结 相比 Github copolit,[Amazon CodeWhisperer](https://aws.amazon.com/cn/codewhisperer/?trk=cndc-detail) 的免费就已经向开发者招手了![Amazon CodeWhisperer](https://aws.amazon.com/cn/codewhisperer/?trk=cndc-detail) 可以帮助开发人员快速识别和修复代码中的问题,从而减少调试时间和错误率。当然 [Amazon CodeWhisperer](https://aws.amazon.com/cn/codewhisperer/?trk=cndc-detail) 也有不足的地方,不支持 go 语言的代码检测。 ![image.png](https://dev-media.amazoncloud.cn/321d057167dc47d9b9e39a4d8142691d_image.png "image.png") ### 引用 [Amazon CodeWhisperer](https://aws.amazon.com/cn/codewhisperer/?trk=cndc-detail)-https://dev.amazoncloud.cn/experience/codewhisperer-1?sc_medium=owned\&sc_campaign=otherowned\&sc_channel=infoq5?trk=cndc-detail
0
目录
关闭