# 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
