
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
- Go to the Amazon Q Developer website.
- Click on the "Get started for free" button.
- Sign in with your AWS account or create a new one if you don't have an account.
- Once signed in, navigate to the AWS Management Console and find "Amazon Q Developer" under the Services menu.
- 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
- Open your preferred Integrated Development Environment (IDE) or text editor where you want to use Amazon Q Developer.
- 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).
- 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. - Amazon Q Developer will automatically suggest code snippets. Click on the suggestion to insert it into your file.
- Review the generated code and modify it as necessary to fit your requirements.
Step 3: Get better results
- 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. - Regularly check the "Security Insights" tab in the Amazon Q Developer interface to identify any vulnerabilities in your code.
- 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 pressCtrl + Shift + P and type "Amazon Q Developer" to bring up the command palette for instant access.