AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

Using Amazon Q Developer in Your IDE: Real-Time Code Generation, Security Scanning, and Code Transformation

365Finds Editorial
Indexed 11,430 Wiki articles

Put 365 Wiki to work with your AI

Copy the prompt below, paste it into the AI you already use, then ask your question.

Download full Skill

Try it with the prompt first. If you use 365 Wiki often, install the full 365Wiki Skill so you do not have to paste it again. No regular AI? Gemini or Microsoft Copilot on the web will work.

365Wiki Skill

Modern software engineering teams face three persistent bottlenecks: boilerplate code authoring, late-stage security vulnerabilities discovered right before deployment, and aging codebases stuck on legacy runtimes. Amazon Q Developer, an AI-powered software development assistant built on Amazon Bedrock, directly integrates into mainstream Integrated Development Environments (IDEs) to address these hurdles across the entire development lifecycle.

Through official extensions for Visual Studio Code, JetBrains IDEs (including IntelliJ IDEA and PyCharm), and Visual Studio 2022, Amazon Q Developer provides three core engineering capabilities:

  1. Real-time inline code generation and contextual conversational coding that dynamically predicts syntax and writes functions from natural language prompts.
  2. Automated static security scanning powered by the Amazon CodeGuru Detector Library that surfaces vulnerabilities, hardcoded secrets, and Common Weakness Enumerations (CWEs) directly in the IDE's Problems pane with one-click remediation patches.
  3. Automated legacy code transformation, where an autonomous transformation agent upgrades Java versions (such as Java 8 or 11 to Java 17 or 21) and modernizes .NET applications, executing local builds and unit tests to validate backwards compatibility.

This practical guide details how to install and configure Amazon Q Developer, operate each core feature effectively in daily engineering workflows, and manage enterprise security and licensing trade-offs.


1. Prerequisites and IDE Setup

Amazon Q Developer operates across several major IDE ecosystems. Before initiating code generation or security scans, ensure your development environment satisfies compatibility and authentication prerequisites.

Supported IDE Environments

IDEMinimum Supported VersionDistribution Package
Visual Studio Code1.85.0 or laterVisual Studio Code Marketplace: "Amazon Q" extension
JetBrains IDEs (IntelliJ IDEA, PyCharm, WebStorm)2024.3 or laterJetBrains Marketplace: "Amazon Q" plugin
Visual Studio (Windows only)Visual Studio 2022 v17.7 or laterVisual Studio Marketplace: "AWS Toolkit for Visual Studio 2022"
Eclipse2024-06 (4.32) or laterEclipse Marketplace: "Amazon Q" plugin

Authentication Models: Free Tier vs. Pro Tier

Amazon Q Developer provides two distinct authentication pathways depending on individual or organizational licensing:

[!NOTE] Support Lifecycle Notice: AWS has documented an end-of-support milestone for legacy Amazon Q Developer IDE plugins on April 30, 2027. AWS recommends developers monitor official roadmap updates and explore transition pathways toward Kiro for next-generation agentic coding, Model Context Protocol (MCP) tooling, and conversational capabilities.


2. Real-Time Code Generation and Conversational Assistance

Amazon Q Developer generates source code through two primary interfaces inside the IDE: ambient inline completions as you type, and interactive chat dialogs equipped with slash commands.

Real-Time Inline Suggestions

As you write code or document intent using natural language comments, Amazon Q analyzes the active file, cursor position, imported libraries, and surrounding workspace context to recommend single-line completions or full multi-line function implementations. Inline suggestions appear directly at your cursor in grey ghost text.

Core Keyboard Shortcuts

ActionmacOS ShortcutWindows / Linux Shortcut
Accept full recommendationTabTab
Accept next word onlyCmd + Right ArrowCtrl + Right Arrow
Cycle to next recommendationRight Arrow (or Option + ])Right Arrow (or Alt + ])
Cycle to previous recommendationLeft Arrow (or Option + [)Left Arrow (or Alt + [)
Reject recommendationEsc or continue typingEsc or continue typing
Manually trigger recommendationOption + CAlt + C

Practical Code Generation Example

When writing a Python asynchronous utility, defining a descriptive function header and docstring triggers Amazon Q to synthesize the entire implementation:

import aiohttp
import asyncio
from typing import Dict, Any, Optional

# Prompting Amazon Q Developer via inline docstring:
async def fetch_json_with_retry(
    url: str, 
    headers: Optional[Dict[str, str]] = None, 
    max_retries: int = 3, 
    backoff_factor: float = 1.5
) -> Optional[Dict[str, Any]]:
    """
    Fetch JSON payload from a remote endpoint with exponential backoff retry.
    Handles client connection timeouts and non-200 HTTP responses.
    """
    # Press Tab to accept Amazon Q's generated block:
    timeout = aiohttp.ClientTimeout(total=10)
    for attempt in range(1, max_retries + 1):
        try:
            async with aiohttp.ClientSession(timeout=timeout) as session:
                async with session.get(url, headers=headers) as response:
                    if response.status == 200:
                        return await response.json()
                    elif response.status in (429, 500, 502, 503, 504):
                        await asyncio.sleep(backoff_factor ** attempt)
                    else:
                        response.raise_for_status()
        except (aiohttp.ClientError, asyncio.TimeoutError):
            if attempt == max_retries:
                raise
            await asyncio.sleep(backoff_factor ** attempt)
    return None

IDE Chat Pane and Inline Chat

For tasks requiring broader architectural context or multi-step logic, open the Amazon Q chat panel by clicking the Amazon Q logo in the activity bar or using the command palette:

Reference Tracker and IP Attribution

When Amazon Q Developer generates code that closely matches public open-source training data, the built-in Reference Tracker flags the recommendation. In the chat pane or status notification, it lists the source repository URL and the associated open-source license (such as MIT, Apache 2.0, or BSD-3-Clause). In enterprise environments configured under IAM Identity Center, administrators can enforce strict policies that automatically block code recommendations containing open-source matches.


3. Automated Security Vulnerability Scanning and One-Click Remediation

Traditional Static Application Security Testing (SAST) often runs late in the CI/CD pipeline, forcing developers to context-switch hours or days after writing code. Amazon Q Developer brings security scanning directly inside the IDE, evaluating both custom business logic and third-party dependencies.

Detection Engine and Coverage

The security analyzer combines generative reasoning with rule-based automated formal reasoning powered by the Amazon CodeGuru Detector Library. Scans identify risks across several critical vectors:

Executing a Security Scan

Engineers can run scans using two operational modes:

  1. Continuous Auto-Scan: Amazon Q can be configured in IDE settings to automatically review code changes in real time as files are saved.
  2. On-Demand Project / File Scan:
    • Open your project workspace in VS Code or JetBrains.
    • Click the Amazon Q icon in the status bar at the bottom of the window, or open the Amazon Q chat pane.
    • Select Run Security Scan (or type Run a security scan on this workspace in the chat).
    • Amazon Q packages the active project scope (up to 100 MB), excluding test folders and vendor binaries, and evaluates the codebase.

Reviewing and Remedying Vulnerabilities

Findings are populated into your IDE's native Problems tab, annotated with severity tags according to the Common Vulnerability Scoring System (CVSS): Critical, High, Medium, Low, or Info.

[Problems - Project Workspace]
├── src/api/user_controller.py
│   └── [High] Line 42: CWE-89 - SQL Injection vulnerability detected in query construction.

Clicking a finding opens the detail view in the Amazon Q panel:

  1. Root Cause Explanation: Outlines why the pattern is dangerous and how untrusted user input reaches the database execution sink without parameterization.
  2. CWE Classification: Cross-references the official MITRE Common Weakness Enumeration ID.
  3. Automated Fix Generation: Amazon Q produces a unified diff demonstrating how to replace concatenated strings with parameterized queries or ORM models.
  4. Applying the Patch: Click Apply Fix or Insert at cursor. The IDE modifies the file directly, allowing you to re-run the scan to verify remediation immediately.

4. Legacy Code Transformation: Upgrading Java and Modernizing Workflows

One of Amazon Q Developer's standout agentic capabilities is the Amazon Q Developer Agent for Code Transformation (formerly Amazon Q Code Transformation). Rather than requiring software engineers to spend weeks manually updating deprecated dependencies, resolving classpath breakages, and rewriting language syntax, the agent executes automated upgrades inside the IDE.

Supported Language and Runtime Paths

The transformation agent specializes in enterprise Java migrations, with expanding support for .NET modernizations:

Source RuntimeSupported Target RuntimePrimary Build Tool
Java 8Java 17, Java 21Apache Maven (v3.8+)
Java 11Java 17, Java 21Apache Maven (v3.8+)
Java 17Java 17 (dependency refresh), Java 21Apache Maven (v3.8+)
Java 21Java 21 (dependency maintenance)Apache Maven (v3.8+)
.NET Framework (Windows).NET 8 (Linux cross-platform)MSBuild / Visual Studio

Prerequisites for Java Code Transformation

Before initiating a transformation job, ensure the following local environment criteria are satisfied:

The Step-by-Step Transformation Workflow

The transformation process operates as an end-to-end autonomous cycle:

flowchart TD
    A["1. Initiate Job (/transform)"] --> B["2. Local Pre-Build Validation"]
    B --> C["3. Encrypted Upload to Isolated AWS Worker"]
    C --> D["4. AI-Driven AST Analysis & Refactoring"]
    D --> E["5. Target JDK Compilation & Unit Test Verification"]
    E --> F["6. Download Patch to .aws/transform"]
    F --> G["7. Side-by-Side Diff Review & Acceptance"]

Step 1: Initiating the Transformation Job

In VS Code or IntelliJ IDEA, open the Amazon Q chat pane and enter the slash command:

/transform

Alternatively, select the Amazon Q: Code Transformation panel from the tool menu. Choose the target module and select your desired destination JDK (e.g., Java 17 or Java 21).

Step 2: Local Pre-Build and Packaging

Amazon Q invokes your local Maven environment to verify project structure, build dependencies, and extract the complete Abstract Syntax Tree (AST) context. If the project fails to compile locally under its existing JDK, the tool halts immediately and displays compiler errors in the log.

Step 3: Secure Processing and Automated Refactoring

Once pre-build validation passes, project code is uploaded to a dedicated, encrypted AWS execution environment. The transformation agent executes a multi-stage migration:

Step 4: Verification Build and Test Execution

The agent attempts to compile the upgraded project against the target JDK and executes the project's existing test suite. If compilation errors arise from changed method signatures, the agent performs iterative remediation cycles to resolve compiler errors while preserving test pass rates.

Step 5: Reviewing the Transformation Plan and Diff

When processing finishes, the generated diff patch and summary report are returned to your local IDE inside the .aws/transform folder:


5. Architectural Comparison: Free vs. Pro Tiers

When planning team adoption, engineering managers must weigh pricing structures, governance controls, and usage allowances:

DimensionFree Tier (AWS Builder ID)Pro Tier ($19 / User / Month)
AuthenticationPersonal AWS Builder ID (No AWS account required)AWS IAM Identity Center (Enterprise SSO: Okta, Azure AD)
Inline SuggestionsIncluded (Unmetered)Included (Unmetered)
IDE Chat & ExplanationsIncluded (Unmetered)Included (Unmetered)
Security ScanningIncluded (Standard project scans)Included (Advanced enterprise rules & auto-review)
Agentic Tasks (/dev)50 requests per user per month400 requests per user per month (Pooled at account level)
Code Transformation1,000 lines of code per month (Trial limits)4,000 lines of code per user per month (Pooled at account level)
Transformation OverageNot expandable (Hard limit)$0.003 per additional line of transformed code
Data Privacy PolicyContent may be used for service improvement (Can opt out)Customer content is never used to train foundational models
IP IndemnificationNot includedIncluded (Full copyright & IP indemnification for generated code)
Admin GovernanceNone (Individual developer configuration)Centralized AWS Management Console, dashboards, license filtering

6. Engineering Best Practices and Decision Framework

To maximize productivity while preventing technical debt when using Amazon Q Developer, incorporate these operational best practices:


References