# Introduction Source: https://docs.augmentcode.com/introduction Augment is the developer AI platform that helps you understand code, debug issues, and ship faster because it understands your codebase. Use Chat, Next Edit, and Code Completions to get more done. export const NextEditIcon = () => ; export const CodeIcon = () => ; export const ChatIcon = () => ; Augment Code ## Get started in minutes Augment works with your favorite IDE and your favorite programming language. Download the extension, sign in, and get coding. Visual Studio Code

Visual Studio Code

Get completions, chat, and instructions in your favorite open source editor.

JetBrains IDEs

JetBrains IDEs

Completions are available for all JetBrains IDEs, like WebStorm, PyCharm, and IntelliJ.

Vim and Neovim

Vim and Neovim

Get completions and chat in your favorite text editor.

## Learn more Get up to speed, stay in the flow, and get more done. Chat, Next Edit, and Code Completions will change the way you build software. } href="/using-augment/chat"> Never get stuck getting started again. Chat will help you get up to speed on unfamiliar code. } href="/using-augment/next-edit"> Keep moving through your tasks by guiding you step-by-step through complex or repetitive changes. } href="/using-augment/completions"> Intelligent code suggestions that knows your codebase right at your fingertips. # Install Augment for JetBrains IDEs Source: https://docs.augmentcode.com/jetbrains/setup-augment/install-jetbrains-ides Are you ready for your new superpowers? Augment in JetBrains IDEs gives you powerful code completions integrated into your favorite text editor. export const k = { openPanel: "Cmd/Ctrl L", commandsPalette: "Cmd/Ctrl Shift A", completions: { accept: "Tab", reject: "Esc", acceptNextWord: "Cmd/Ctrl →" }, instructions: { start: "Cmd/Ctrl I", accept: "Return/Enter", reject: "Esc" }, suggestions: { goToNext: "Cmd/Ctrl ;", goToPrevious: "Cmd/Ctrl Shift ;", accept: "Enter", reject: "Backspace", undo: "Cmd/Ctrl Z", redo: "Cmd Shift Z/Ctrl Y" } }; export const Keyboard = ({shortcut}) => {shortcut} ; export const Command = ({text}) => {text}; export const ExternalLink = ({text, href}) => {text} ; export const JetbrainsLogo = () => ; Augment requires version `2024.2` or above for all JetBrains IDEs. [See JetBrains documentation](https://www.jetbrains.com/help/) on how to update your IDE. } horizontal> Install Augment for JetBrains IDEs ## About Installation Installing is easy and will take you less than a minute. Augment is compatible with all JetBrains IDEs, including WebStorm, PyCharm, and IntelliJ. You can find the Augment plugin in the JetBrains Marketplace and install it following the instructions below. Augment plugin in JetBrains Marketplace ## Installing Augment for JetBrains IDEs For these instructions we'll use *JetBrains IntelliJ* as an example, anywhere you see *IntelliJ* replace the name of the JetBrains IDE you're using. In the case of Android Studio, which is based on IntelliJ, please ensure that your installation uses a runtime with JCEF. Go to , type and press . Ensure the current runtime ends with `-jcef`; if not, select one **with JCEF** from the options below. You can download the latest version of JetBrains IDEs from the website. If you already have IntelliJ installed, you can update to the latest version by going to{" "} . From the menu bar, go to , or use the keyboard shortcut to open the Settings window. Select from the sidebar. Using the search bar in the Plugins panel, search for{" "} . Click to install the extension. Then click{" "} to close the Settings window. Sign in to by clicking in the Augment panel. If you do not see the Augment panel, use the shortcut{" "} or click the Augment icon{" "} in the side bar of your IDE. See more details in [Sign In](/setup-augment/sign-in). ## Installing Beta versions of Augment for JetBrains IDEs In order to get a specific bug fix or feature, sometimes you may need to *temporarily* install a beta version of Augment for JetBrains IDEs. To do this, follow the steps below: You can download the latest beta version of Augment from website. Please click on the latest version and save the archive to disk. From the menu bar, go to , or use the keyboard shortcut to open the Settings window. Select from the sidebar. Click on the gear icon next to tab and click . Select the archive you downloaded in the previous step and click . # Keyboard Shortcuts for JetBrains IDEs Source: https://docs.augmentcode.com/jetbrains/setup-augment/jetbrains-keyboard-shortcuts Augment integrates with your IDE to provide keyboard shortcuts for common actions. Use these shortcuts to quickly accept suggestions, write code, and navigate your codebase. export const mac = { openPanel: "Cmd L", commandsPalette: "Cmd Shift A", completions: { toggle: "Cmd Option A", toggleIntelliJ: "Cmd Option 9", accept: "Tab", reject: "Esc", acceptNextWord: "Cmd →" }, instructions: { start: "Cmd I", accept: "Return", reject: "Esc" }, suggestions: { goToNext: "Cmd ;", goToPrevious: "Cmd Shift ;", accept: "Enter", reject: "Backspace", undo: "Cmd Z", redo: "Cmd Shift Z" } }; export const win = { openPanel: "Ctrl L", commandsPalette: "Ctrl Shift A", completions: { toggle: "Ctrl Alt A", toggleIntelliJ: "Ctrl Alt 9", accept: "Tab", reject: "Esc", acceptNextWord: "Ctrl →" }, instructions: { start: "Ctrl I", accept: "Return", reject: "Esc" }, suggestions: { goToNext: "Ctrl ;", goToPrevious: "Ctrl Shift ;", accept: "Enter", reject: "Backspace", undo: "Ctrl Z", redo: "Ctrl Y" } }; export const Keyboard = ({shortcut}) => {shortcut} ; export const Command = ({text}) => {text}; ## About keyboard shortcuts Augment is deeply integrated into your IDE and utilizes many of the standard keyboard shortcuts you are already familiar with. These shortcuts allow you to quickly accept suggestions, write code, and navigate your codebase. We also suggest updating a few keyboard shortcuts to make working with code suggestions even easier. To update keyboard shortcuts, use one of the following: | Method | Action | | :------- | :------------------------------------------------------------- | | Keyboard | select | | Menu bar | | ## General | Action | Default shortcut | | :----------------- | :----------------------------------- | | Open Augment panel | | ## Chat | Action | Default shortcut | | :----------------------- | :----------------------------------- | | Focus or open Chat panel | | ## Completions | Action | Default shortcut | | :--------------------------- | :----------------------------------------------------- | | Accept entire suggestion | | | Accept word-by-word | | | Reject suggestion | | | Toggle automatic completions | | To update keyboard shortcuts, use one of the following: | Method | Action | | :------- | :------------------------------------------------------------------- | | Keyboard | then select | | Menu bar | | ## General | Action | Default shortcut | | :----------------- | :--------------------------------- | | Open Augment panel | | ## Chat | Action | Default shortcut | | :----------------------- | :--------------------------------- | | Focus or open Chat panel | | ## Completions | Action | Default shortcut | | :--------------------------- | :----------------------------------------------------- | | Accept entire suggestion | | | Accept word-by-word | | | Reject suggestion | | | Toggle automatic completions | | # Index your workspace Source: https://docs.augmentcode.com/jetbrains/setup-augment/workspace-indexing When your workspace is indexed, Augment can provide tailored code suggestions and answers based on your unique codebase, best practices, coding patterns, and preferences. You can always control what files are indexed. ## About indexing your workspace When you open a workspace with Augment enabled, your codebase will be automatically uploaded to Augment's secure cloud. You can control what files get indexed using `.gitignore` and `.augmentignore` files. Indexing usually takes less than a minute but can take longer depending on the size of your codebase. In Visual Studio Code, you can use Workspace Context to [view what files are indexed](/setup-augment/workspace-context#view-index-status-in-visual-studio-code) and [add additional context](/setup-augment/workspace-context). ## Security and privacy Augment stores your code securely and privately to enable our powerful context engine. We ensure code privacy through a proof-of-possession API and maintain strict internal data minimization principles. [Read more about our security](https://www.augmentcode.com/security). ## What gets indexed Augment will index all the files in your workspace, except for the files that match patterns in your `.gitignore` file and the `.augmentignore` file. You can [view what files are indexed](/setup-augment/workspace-context#view-sync-status-in-visual-studio-code) in Workspace Context. ## Ignoring files with .augmentignore The `.augmentignore` file is a list of file patterns that Augment will ignore when indexing your workspace. Create an `.augmentignore` file in the root of your workspace. You can use any glob pattern that is supported by the [gitignore](https://git-scm.com/docs/gitignore) file. ## Including files that are .gitignored If you have a file or directory in your `.gitignore` that you want to indexed, you can add it to your `.augmentignore` file using the `!` prefix. For example, you may want your `node_modules` indexed to provide Augment with context about the dependencies in their project, but it is typically included in their `.gitignore`. Add `!node_modules` to your `.augmentignore` file. ```bash .augmentignore # Include .gitignore excluded files with ! prefix !node_modules # Exclude other files with .gitignore syntax data/test.json ``` ```bash .gitignore # Exclude dependencies node_modules # Exclude secrets .env # Exclude build artifacts out build ``` # Using Agent Source: https://docs.augmentcode.com/jetbrains/using-augment/agent Use Agent to complete simple and complex tasks across your workflow–implementing a feature, upgrade a dependency, or writing a pull request. export const AtIcon = () =>
; ## About Agent Augment Agent is a powerful tool that can help you complete software development tasks end-to-end. From quick edits to complete feature implementation, Agent breaks down your requests into a functional plan and implements each step all while keeping you informed about what actions and changes are happening. Powered by Augment's Context Engine and powerful LLM architecture, Agent can write, document, and test like an experienced member of your team. ## Accessing Agent To access Agent, simply open the Augment panel and select one of the Agent modes from the drop down in the input box. Augment Agent ## Using Agent To use Agent, simply type your request into the input box using natural language and click the submit button. You will see the default context including current workspace, current file, and Agent memories. You can add additional context by clicking and selecting files or folder, or add an image as context by clicking the paperclip. Agent can create, edit, or delete code across your workspace and can use tools like the terminal and external integrations through MCP to complete your request. ### Reviewing changes You can review every change Agent makes by clicking on the action to expand the view. Review diffs for file changes, see complete terminal commands and output, and the results of external integration calls. Augment Agent ### Checkpoints Checkpoints are automatically saved snapshots of your workspace as Agent implements the plan allowing you to easily revert back to a previous step. This enables Agent to continue working while you review code changes and commands results. To revert to a previous checkpoint, click the reverse arrow icon at the point you want to return to. Augment Agent ### Agent memories Memories help the Agent remember important details about your workspace and your preferences for working in it. Memories are stored locally and are applied to all Agent requests. Memories can be added automatically by Agent, by clicking the remember button under a message, asking Agent to remember something, or by editing the Memories files directly. ### Agent modes Agent can work in two modes: Manual or Auto. After Agent has made a plan from your request, Agent can implement that plan either automatically or with some manual approval from you. **Manual mode** In Manual mode, Agent will pause work when it needs to execute a terminal command or access external integrations. Manual mode allows you to review actions before they are executed. After reviewing the suggested action, click the blue play button to have Agent execute the command and continue working. Augment Agent **Auto mode** In Auto mode, Agent will implement the entire plan for you. Agent will edit files, execute terminal commands, and access tools like MCP servers automatically. ### Comparison to Chat Agent takes Chat to the next level by allowing Augment to do things for you-that is create and make modifications directly to your codebase. Chat can explain code, create plans, and suggest changes which you can smartly apply one-by-one, but Agent takes it a step further by automatically implementing the entire plan and all code changes for you. | What are you trying to do? | Chat | Agent | | :----------------------------------------------- | :--: | :---: | | Ask questions about your code | ☑️ | ✅ | | Get advice on how to refactor code | ☑️ | ✅ | | Add new features to selected lines of code | ☑️ | ✅ | | Add new feature spanning multiple files | | ✅ | | Document new features | | ✅ | | Queue up tests for you in the terminal | | ✅ | | Open Linear tickets or start a pull request | | ✅ | | Start a new branch in GitHub from recent commits | | ✅ | | Automatically perform tasks on your behalf | | ✅ | ### Use cases Use Agent to handle various aspects of your software development workflow, from simple configuration changes to complex feature implementations. Agent supports your daily engineering tasks like: * **Make quick edits** - Create a pull request to adjust configuration values like feature flags from FALSE to TRUE * **Perform refactoring** - Move functions between files while maintaining coding conventions and ensuring bug-free operation * **Start a first draft for new features** - Start a pull request (PR) with implementing entirely new functionality straight from a GitHub Issue or Linear Ticket * **Branch from GitHub** - Open a PR from GitHub based on recent commits that creates a new branch * **Add Pull Request descriptions** - Merge your PR into a branch then tell the agent to explain what the changes are and why they were made * **Create test coverage** - Generate unit tests for your newly developed features * **Generate documentation** - Produce comprehensive documentation for your libraries and features * **Start a README** - Write a README for a new feature or updated function that you just wrote * **Track development progress** - Review and summarize your recent Git commits for better visibility with the GitHub integration ## Next steps * [Configure Agent Integrations](/setup-augment/agent-integrations) * [Configure other tools with MCP](/setup-augment/mcp) # Using Chat Source: https://docs.augmentcode.com/jetbrains/using-augment/chat Use Chat to explore your codebase, quickly get up to speed on unfamiliar code, and get help working through a technical problem. export const win = { openPanel: "Ctrl L", commandsPalette: "Ctrl Shift A", completions: { toggle: "Ctrl Alt A", toggleIntelliJ: "Ctrl Alt 9", accept: "Tab", reject: "Esc", acceptNextWord: "Ctrl →" }, instructions: { start: "Ctrl I", accept: "Return", reject: "Esc" }, suggestions: { goToNext: "Ctrl ;", goToPrevious: "Ctrl Shift ;", accept: "Enter", reject: "Backspace", undo: "Ctrl Z", redo: "Ctrl Y" } }; export const mac = { openPanel: "Cmd L", commandsPalette: "Cmd Shift A", completions: { toggle: "Cmd Option A", toggleIntelliJ: "Cmd Option 9", accept: "Tab", reject: "Esc", acceptNextWord: "Cmd →" }, instructions: { start: "Cmd I", accept: "Return", reject: "Esc" }, suggestions: { goToNext: "Cmd ;", goToPrevious: "Cmd Shift ;", accept: "Enter", reject: "Backspace", undo: "Cmd Z", redo: "Cmd Shift Z" } }; export const DeleteIcon = () =>
; export const ChevronRightIcon = () =>
; export const NewChatIcon = () =>
; export const Keyboard = ({shortcut}) => {shortcut} ; export const Command = ({text}) => {text}; ## About Chat Chat is a new way to work with your codebase using natural language. Chat will automatically use the current workspace as context and you can [provide focus](/using-augment/chat-context) for Augment by selecting specific code blocks, files, folders, or external documentation. Details from your current chat, including the additional context, are used to provide more relevant code suggestions as well. Augment Chat ## Accessing Chat Access the Chat sidebar by clicking the Augment icon in the sidebar or the status bar. You can also open Chat by using one of the keyboard shortcuts below. **Keyboard Shortcuts** | Platform | Shortcut | | :------------ | :------------------------------------ | | MacOS | | | Windows/Linux | | ## Using Chat To use Chat, simply type your question or command into the input field at the bottom of the Chat panel. You will see the currently included context which includes the workspace and current file by default. Use Chat to explain your code, investigate a bug, or use a new library. See [Example Prompts for Chat](/using-augment/chat-prompts) for more ideas on using Chat. #### Conversations about code To get the best possible results, you can go beyond asking simple questions or commands, and instead have a back and forth conversation with Chat about your code. For example, you can ask Chat to explain a specific function and then ask follow-up questions about possible refactoring options. Chat can act as a pair programmer, helping you work through a technical problem or understand unfamiliar code. #### Starting a new chat You should start a new Chat when you want to change the topic of the conversation since the current conversation is used as part of the context for your next question. To start a new chat, open the Augment panel and click the new chat icon at the top-right of the Chat panel. #### Previous chats You can continue a chat by clicking the chevron iconat the top-left of the Chat panel. Your previous chats will be listed in reverse chronological order, and you can continue your conversation where you left off. #### Deleting a chat You can delete a previous chat by clicking the chevron iconat the top-left of the Chat panel to show the list of previous chats. Click the delete icon next to the chat you want to delete. You will be asked to confirm that you want to delete the chat. # Using Actions in Chat Source: https://docs.augmentcode.com/jetbrains/using-augment/chat-actions Actions let you take common actions on code blocks without leaving Chat. Explain, improve, or find everything you need to know about your codebase. export const ArrowUpIcon = () =>
; export const Keyboard = ({shortcut}) => {shortcut} ; Augment Chat Actions ## Using actions in Chat To use a quick action, you an use a command or click the up arrow iconto show the available actions. For explain, fix, and test actions, first highlight the code in the editor and then use the command. | Action | Usage | | :------------------------------- | :----------------------------------------------------------------------- | | | Use natural language to find code or functionality | | | Augment will explain the hightlighted code | | | Augment will suggest improvements or find errors in the highlighted code | | | Augment will suggest tests for the highlighted code | Augment will typically include code blocks in the response to the action. See [Applying code blocks from Chat](/using-augment/chat-apply) for more details. # Applying code blocks from Chat Source: https://docs.augmentcode.com/jetbrains/using-augment/chat-apply Use Chat to explore your codebase, quickly get up to speed on unfamiliar code, and get help working through a technical problem. export const Availability = ({tags}) => { const tagTypes = { invite: { styles: "bg-gray-700 text-white dark:border-gray-50/10" }, beta: { styles: "border border-zinc-500/20 bg-zinc-50/50 dark:border-zinc-500/30 dark:bg-zinc-500/10 text-zinc-900 dark:text-zinc-200" }, vscode: { styles: "border border-sky-500/20 bg-sky-50/50 dark:border-sky-500/30 dark:bg-sky-500/10 text-sky-900 dark:text-sky-200" }, jetbrains: { styles: "border border-amber-500/20 bg-amber-50/50 dark:border-amber-500/30 dark:bg-amber-500/10 text-amber-900 dark:text-amber-200" }, vim: { styles: "bg-gray-700 text-white dark:border-gray-50/10" }, neovim: { styles: "bg-gray-700 text-white dark:border-gray-50/10" }, default: { styles: "bg-gray-200" } }; return
Availability {tags.map(tag => { const tagType = tagTypes[tag] || tagTypes.default; return
{tag}
; })}
; }; export const MoreVertIcon = () =>
; export const CheckIcon = () =>
; export const FileNewIcon = () =>
; export const FileCopyIcon = () =>
; Augment Chat Apply ## Using code blocks from within Chat Whenever Chat responds with code, you will have the option to add the code to your codebase. The most common option will be shown as a button and you can access the other options by clicking the overflow menu iconat the top-right of the code block. You can use the following options to apply the code: * **Copy** the code from the block to your clipboard * **Create** a new file with the code from the block * **Apply** the code from the block intelligently to your file # Focusing Context in Chat Source: https://docs.augmentcode.com/jetbrains/using-augment/chat-context You can specify context from files, folders, and external documentation in your conversation to focus your chat responses. export const AtIcon = () =>
; export const Command = ({text}) => {text}; ## About Chat Context Augment intelligently includes context from your entire workspace based on the ongoing conversation–even if you don't have the relevant files open in your editor–but sometimes you want Augment to prioritize specific details for more relevant responses.