Delv
Amazon Q Developer
Getting Started Guide

How to Use Amazon Q Developer

A practical guide to get you up and running with Amazon Q Developer. Written by Delv Editorial, Delv Team.

Getting started with Amazon Q Developer

In this guide, you'll learn how to set up Amazon Q Developer and generate code snippets, identify vulnerabilities, and optimise your AWS usage. You'll be ready to enhance your development workflow in minutes.

Step 1: Sign up and set up

  1. Go to the Amazon Q Developer website.
  2. Click on the "Get started for free" button.
  3. Sign in with your AWS account or create a new one if you don't have an account.
  4. Once signed in, navigate to the AWS Management Console and find "Amazon Q Developer" under the Services menu.
  5. Follow the prompts to enable the tool. If you're using the free tier, you’ll have access to basic features.

Step 2: Your first code snippet

  1. Open your preferred Integrated Development Environment (IDE) or text editor where you want to use Amazon Q Developer.
  2. Install the Amazon Q Developer extension for your IDE. You can find it in the extension marketplace of your IDE (e.g., Visual Studio Code).
  3. After installation, open a new file and start typing a comment describing the code you want. For example, write // Create a REST API with AWS Lambda.
  4. Amazon Q Developer will automatically suggest code snippets. Click on the suggestion to insert it into your file.
  5. Review the generated code and modify it as necessary to fit your requirements.

Step 3: Get better results

  1. To improve code suggestions, use clear and specific comments. Instead of vague prompts, be detailed, e.g., // Function to calculate the sum of two numbers.
  2. Regularly check the "Security Insights" tab in the Amazon Q Developer interface to identify any vulnerabilities in your code.
  3. Explore the "Optimisation Suggestions" section to see how you can improve your AWS resource usage.

Pro tip

Use keyboard shortcuts to quickly access Amazon Q Developer features in your IDE. For example, in Visual Studio Code, you can press Ctrl + Shift + P and type "Amazon Q Developer" to bring up the command palette for instant access.

Common mistake to avoid

Many beginners forget to enable the Amazon Q Developer extension in their IDE after installation. Ensure that the extension is activated in your IDE settings to start receiving code suggestions.