> For the complete documentation index, see [llms.txt](https://metaverse-imagen.gitbook.io/ai-tools-research/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://metaverse-imagen.gitbook.io/ai-tools-research/ai-tools-main-categories/programming-and-code/code-generators/codewhisperer-amazon.md).

# CodeWhisperer (Amazon)

{% embed url="<https://aws.amazon.com/codewhisperer/>" %}

Amazon CodeWhisperer is a machine learning powered service that helps improve developer productivity by generating code recommendations based on developers' comments in natural language and their code in the IDE.&#x20;

It is available for the Java, JavaScript, Python, C# and TypeScript programming languages and also supports code generation for Ruby, Go, PHP, C++, C, Shell, Scala, Rust, Kotlin and SQL.

To use CodeWhisperer in Cloud9, you need to:

1. Enable CodeWhisperer in your Cloud9 environment.
2. Start typing your code in the Cloud9 editor.
3. As you type, CodeWhisperer will generate code recommendations in the editor.
4. You can accept or reject the recommendations.

Here are the steps on how to enable CodeWhisperer in Cloud9:

1. Open your Cloud9 environment.
2. Click the AWS logo in the left pane of the editor.
3. In the Developer tools section, click the CodeWhisperer dropdown.
4. Select Enable CodeWhisperer.

Once you have enabled CodeWhisperer, you can start using it by typing your code in the editor. As you type, CodeWhisperer will generate code recommendations in the editor. You can accept or reject the recommendations.

Here are some examples of code recommendations that CodeWhisperer can generate:

* Code completion: CodeWhisperer can suggest code completions for the code you are typing.
* Function signatures: CodeWhisperer can suggest function signatures for the functions you are calling.
* Variable names: CodeWhisperer can suggest variable names for the variables you are declaring.
* Comments: CodeWhisperer can suggest comments for the code you are writing.

CodeWhisperer can be a helpful tool for improving your coding productivity. It can help you to write code more quickly and accurately. If you are using Cloud9, I recommend that you enable CodeWhisperer and give it a try.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://metaverse-imagen.gitbook.io/ai-tools-research/ai-tools-main-categories/programming-and-code/code-generators/codewhisperer-amazon.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
