![]() Accept suggestions when they’re helpful, and ignore suggestions when they’re not. CodeWhisperer will make automatic suggestions as you type. To use CodeWhisperer in this way, just write code as you normally would. Now, onto the examples! Typing lessĪt the most basic level, CodeWhisperer can be used as a supercharged auto-complete, significantly reducing your typing when writing individual lines or blocks of code. However, the techniques I’ll demonstrate are equally suited to many of the programming languages supported by CodeWhisperer. The examples in this article are written in JavaScript and TypeScript. Even punctuation changes can produce fresh suggestions. If you receive a suggestion that doesn’t suit your needs, try cycling through all available suggestions using the arrow keys or try rephrasing any code comment prompts slightly. The suggestions CodeWhisperer offers are non-deterministic, which means you may receive slightly different suggestions than the ones shown in this article. You can press the → and ← keys to cycle through all available suggestions. CodeWhisperer will also sometimes present you with multiple suggestions to choose from. If you aren’t presented with a suggestion, you can always manually trigger a suggestion using the Option + C (Mac) or Alt + C (Windows) shortcut. ![]() Refer to the CodeWhisperer “Getting Started” resources for setup instructions.ĬodeWhisperer will present suggestions automatically as you type. VS Code, AWS Cloud9, and most editors from JetBrains will work. If you would like to try these techniques for yourself, you will need to use a code editor with the AWS Toolkit extension installed. Learning third-party code libraries faster.In this article, I’m excited to share these techniques with you, using practical examples to illustrate just how CodeWhisperer can enhance your programming workflow. But, as an early explorer, I’ve discovered several techniques that have allowed me to get the most out of this amazing tool. However, learning to use any generative AI tool effectively requires a beginner’s mindset and a willingness to embrace new ways of working.īest practices for tapping into CodeWhisperer’s power are still emerging. Ever since I have incorporated CodeWhisperer into my workflow, I have become faster, smarter, and even more delighted when building applications. Amazon CodeWhisperer is a powerful generative AI tool that gives me coding superpowers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |