# 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 = () => ;
## 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
Get completions, chat, and instructions in your favorite open source
editor.
JetBrains IDEs
Completions are available for all JetBrains IDEs, like WebStorm, PyCharm,
and IntelliJ.
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.
## 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.
## 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.
### 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.
### 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.
**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.
## 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}
;
## 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
;
## 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.
### Focusing context for your conversation
You can specify context by clicking the icon at the top-left of the Chat panel or by in the input field. You can use fuzzy search to filter the list of context options quickly. There are a number of different types of additional context you can add to your conversation:
1. Highlighted code blocks
2. Specific files or folders within your workspace
3. 3rd party documentation, like Next.js documentation
#### Mentioning files and folders
Include specific files or folders in your context by typing `@` followed by the file or folder name. For example, `@routes.tsx` will include the `routes.tsx` file in your context. You can include multiple files or folders.
#### Mentioning 3rd party documentation
You can also mention 3rd party documentation in your context by typing `@` followed by the name of the documentation. For example, `@Next.js` will include Next.js documentation in your context. Augment provides nearly 300 documentation sets spanning across a wide range of domains such as programming languages, packages, software tools, and frameworks.
# Example Prompts for Chat
Source: https://docs.augmentcode.com/jetbrains/using-augment/chat-prompts
Using natural language to interact with your codebase unlocks a whole new way of working. Learn how to get the most out of Chat with the following example prompts.
## About chatting with your codebase
Augment's Chat has deep understanding about your codebase, dependencies, and best practices. You can use Chat to ask questions about your code, but it also can help you with general software engineering questions, think through technical decisions, explore new libraries, and more. Here are a few example prompts to get you started.
## Explain code
* Explain this codebase to me
* How do I use the Twilio API to send a text message?
* Explain how generics work in TypeScript and give me a simple example
## Finding code
* Where are all the useEffect hooks that depend on the 'currentUser' variable?
* Find the decorators that implement retry logic across our microservices
* Find coroutines that handle database transactions without a timeout parameter
## Generate code
* Write a function to check if a string is a valid email address
* Generate a middleware function that rate-limits API requests using a sliding window algorithm
* Create a SQL query to find the top 5 customers who spent the most money last month
## Write tests
* Write integration tests for this API endpoint
* What edge cases have I not included in this test?
* Generate mock data for testing this customer order processing function
## Refactor and improve code
* This function is running slowly with large collections - how can I optimize it?
* Refactor this callback-based code to use async/await instead
* Rewrite this function in Rust
## Find and fix errors
* This endpoint sometimes returns a 500 error. Here's the error log - what's wrong?
* I'm getting 'TypeError: Cannot read property 'length' of undefined' in this component.
* Getting CORS errors when my frontend tries to fetch from the API
# Completions
Source: https://docs.augmentcode.com/jetbrains/using-augment/completions
Use code completions to get more done. Augment's radical context awareness means more relevant suggestions, fewer hallucinations, and less time hunting down documentation.
export const MoreVertIcon = () =>
;
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 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};
## About Code Completions
Augment's Code Completions integrates with your IDE's native completions system to give you autocomplete-like suggestions as you type. You can accept all of a suggestion, accept partial suggestions a word or a line at a time, or just keep typing to ignore the suggestion.
## Using Code Completions
To use code completions, simply start typing in your IDE. Augment will provide suggestions based on the context of your code. You can accept a suggestion by pressing , or ignore it by continuing to type.
For example, add the following function to a TypeScript file:
```typescript
function getUser(): Promise;
```
As you type `getUser`, Augment will suggest the function signature. Press to accept the suggestion. Augment will continue to offer suggestions until the function is complete, at which point you will have a function similar to:
```typescript
function getUser(): Promise {
return fetch("/api/user/1")
.then((response) => response.json())
.then((json) => {
return json as User;
});
}
```
### Accepting Completions
We recommend configuring a custom keybinding to accept a word or line, see
[Keyboard shortcuts](/setup-augment/vscode-keyboard-shortcuts) for more
details.
| Action | Default keyboard shortcut |
| :----------------------------- | :---------------------------------------------------------------- |
| Accept inline suggestion | |
| Accept next word of suggestion | |
| Accept next line of suggestion | None (see above) |
| Reject suggestion | |
| Ignore suggestion | Continue typing through the suggestion |
| Toggle automatic completions | VSCode: |
| | JetBrains: |
We recommend configuring a custom keybinding to accept a word or line, see
[Keyboard shortcuts](/setup-augment/vscode-keyboard-shortcuts) for more
details.
| Action | Default keyboard shortcut |
| :----------------------------- | :---------------------------------------------------------------- |
| Accept inline suggestion | |
| Accept next word of suggestion | |
| Accept next line of suggestion | None (see above) |
| Reject suggestion | |
| Ignore suggestion | Continue typing through the suggestion |
| Toggle automatic completions | VSCode: |
| | JetBrains: |
### Disabling Completions
You can disable automatic code completions by clicking the overflow menu iconat the top-right of the Augment panel, then selecting .
You can disable automatic code completions by clicking the Augment icon in the status bar at the bottom right corner of your IDE, then selecting .
### Enable Completions
If you've temporarily disabled completions, you can re-enable them by clicking the overflow menu iconat the top-right of the Augment panel, then selecting .
If you've temporarily disabled completions, you can re-enable them by clicking the Augment icon in the status bar at the bottom right corner of your IDE, then selecting .
# Quickstart
Source: https://docs.augmentcode.com/quickstart
Augment is the developer AI for teams that deeply understands your codebase and how you build software. Your code, your dependencies, and your best practices are all at your fingertips.
export const Next = ({children}) =>
Install Augment for JetBrains IDEs, including WebStorm, PyCharm, and IntelliJ
Vim and Neovim
Get completions and chat in your favorite text editor.
### 2. Sign-in and sync your repository
For VS Code and JetBrains IDEs, follow the prompts in the Augment panel to [sign in](/setup-augment/sign-in) and [index your workspace](/setup-augment/workspace-indexing). If you don't see the Augment panel, press or click the Augment icon in the side panel of your IDE.
For Vim and Neovim, use the command `:Augment signin` to sign in.
### 3. Start coding with Augment
Augment Chat enables you to work with your codebase using natural language.
Ask Chat to explain your codebase, help you get started with debugging an
issue, or writing entire functions and tests. See [Using
Chat](/using-augment/chat) for more details.
Augment Next Edit keeps you moving through your tasks by guiding you step-by-step through complex or repetitive changes. Jump to the next suggestion–in the same file or across your codebase–by pressing . See
[Using Next Edit](/using-augment/next-edit) for more details.
Start using an Instruction by hitting and quickly write tests, refactor code, or craft any prompt in natural language to transform your code. See [Using
Instructions](/using-augment/instructions) for more details.
Augment provides inline code suggestions as you type. To accept the full
suggestions, press , or accept the suggestion one
word at a time with . See [Using
Completions](/using-augment/completions) for more details.
* [Disable other code assistants](/troubleshooting/disable-copilot)
* [Use keyboard shortcuts](/setup-augment/vscode-keyboard-shortcuts)
* [Configure indexing](/setup-augment/workspace-indexing)
# Agent Integrations
Source: https://docs.augmentcode.com/setup-augment/agent-integrations
Configure integrations for Augment Agent to access external services like GitHub, Linear, and Notion.
export const Keyboard = ({shortcut}) =>
{shortcut}
;
export const Command = ({text}) => {text};
export const NotionLogo = () => ;
export const LinearLogo = () => ;
export const GitHubLogo = () => ;
## About Agent Integrations
Augment Agent can access external services through integrations to add additional context to your requests and take actions on your behalf. These integrations allow Augment Agent to seamlessly work with your development tools without leaving your editor.
Once set up, Augment Agent will automatically use the appropriate integration based on your request context. Or, you can always mention the service in your request to use the integration.
## Setting Up Integrations
To set up integrations with Augment Agent in VS Code, follow these steps:
1. Click the settings icon in the top right of Augment's chat window or press and select
2. Click "Connect" for the integration you want to set up
You'll be redirected to authorize the integration with the appropriate service. After authorization, the integration will be available for use with Augment Agent.
##
GitHub Integration
Augment Agent can access GitHub through the GitHub API to add additional context to your requests and take actions on GitHub. Pull in information from a GitHub Issue, make the changes to your code (or have Agent do it for you), and open a Pull Request all without leaving your editor.
### Examples
* "Implement Issue #123 and open up a pull request"
* "Find all issues assigned to me"
* "Check the CI status of my latest commit"
For authorization details, see [GitHub documentation](https://docs.github.com/en/apps/using-github-apps/installing-a-github-app-from-a-third-party).
##
Linear Integration
With the Linear integration, Augment Agent can read, update, and resolve your Linear issues.
### Examples
* "Fix TES-1"
* "Create Linear tickets for these TODOs"
* "Help me triage these new bug reports"
For authorization details, see [Linear documentation](https://linear.app/docs/third-party-application-approvals).
##
Notion Integration
The Notion integration allows Augment Agent to search and retrieve information from your team's knowledge base. Access documentation, meeting notes, and project specifications directly in your editor. The Notion integration is currently READ-ONLY.
### Examples
* "Find Notion pages about our API documentation"
* "Show me the technical specs for the payment system"
* "What outstanding tasks are left from yesterday's team meeting"
For authorization details, see [Notion documentation](https://www.notion.so/help/add-and-manage-connections-with-the-api#install-from-a-developer).
## Next Steps
* [Configure other tools with MCP](/setup-augment/mcp)
# Install Augment for Slack
Source: https://docs.augmentcode.com/setup-augment/install-slack-app
Ask Augment questions about your codebase right in Slack.
export const Next = ({children}) =>
Next steps
{children}
;
export const SlackLogo = () => ;
export const GitHubLogo = () => ;
export const Command = ({text}) => {text};
The Augment GitHub App is compatible with GitHub.com and GitHub Enterprise Cloud. GitHub Enterprise Server is not currently supported.
## About Augment for Slack
Augment for Slack brings the power of Augment Chat to your team's Slack workspace. Mention in any channel or start a DM with Augment to have deep codebase-aware conversations with your team.
*To protect your confidential information, Augment will not include repository context in responses when used in shared channels with external members.*
## Installing Augment for Slack
### 1. Install GitHub App
} horizontal>
GitHub App for Augment Chat in Slack
To enable Augment's rich codebase-awareness, install the Augment GitHub App and grant access to your desired repositories. Organization owners and repository admins can install the app directly; others will need owner approval. See [GitHub documentation](https://docs.github.com/en/apps/using-github-apps/installing-a-github-app-from-a-third-party) for details.
We recommend authorizing only the few active repositories you want accessible to Augment Slack users. You can modify repository access anytime in the GitHub App settings.
### 2. Install Slack App
} horizontal>
Slack App for Augment Code
Once you have the GitHub App installed, install the Augment Slack App. You'll need an Augment account and correct permissions to install Slack apps for your workspace.
Any workspace member can use the Slack app once installed. Contact us if you need to restrict access to specific channels or users.
### 3. Add Augment to the Slack Navigation Bar
Make Augment easily accessible by adding it to Slack's assistant-view navigation bar:
1. Click your profile picture → **Preferences** → **Navigation**
2. Under **App agents & assistants**, select **Augment**
*Note: Each user can customize this setting in their preferences.*
[Using Augment for Slack](/using-augment/slack)
# Install Augment for Vim and Neovim
Source: https://docs.augmentcode.com/setup-augment/install-vim-neovim
Augment for Vim and Neovim gives you powerful code completions and chat capabilities integrated into your favorite code editor.
export const Next = ({children}) =>
Next steps
{children}
;
export const NeoVimLogo = () => ;
export const ExternalLink = ({text, href}) =>
{text}
;
} horizontal>
View Augment for Vim and Neovim on GitHub
## About Installation
Installing is easy and will take you less than a minute. You can install the extension manually or you can use your favorite plugin manager.
## Prerequisites
Augment for Vim and Neovim requires a compatible version of Vim or Neovim, and Node.js:
| Dependency | Minimum version |
| :--------------------------------------------------------------------------------------------- | :-------------- |
| [Vim](https://github.com/vim/vim?tab=readme-ov-file#installation) | 9.1.0 |
| [Neovim](https://github.com/neovim/neovim/tree/master?tab=readme-ov-file#install-from-package) | 0.10.0 |
| [Node.js](https://nodejs.org/en/download/package-manager/all) | 22.0.0 |
## 1. Install the extension
### Manual Installation
```sh
git clone https://github.com/augmentcode/augment.vim.git ~/.config/nvim/pack/augment/start/augment.vim
```
### Using Lazy.nvim
Add the following to your `init.lua` file, then run `:Lazy sync` in Neovim. See more details about using [Lazy.nvim on GitHub](https://github.com/folke/lazy.nvim).
```lua
require('lazy').setup({
-- Your other plugins here
'augmentcode/augment.vim',
})
```
### Manual Installation
```sh
git clone https://github.com/augmentcode/augment.vim.git ~/.vim/pack/augment/start/augment.vim
```
### Using Vim Plug
Add the following to your `.vimrc` file, then run `:PlugInstall` in Vim. See more details about using [Vim Plug on GitHub](https://github.com/junegunn/vim-plug).
```vim
call plug#begin()
" Your other plugins here
Plug 'augmentcode/augment.vim'
call plug#end()
```
## 2. Configure your workspace context
Add your project root to your workspace context by setting `g:augment_workspace_folders` in your `.vimrc` or `init.lua` file before the plugin is loaded. For example:
```vim
" Add to your .vimrc
let g:augment_workspace_folders = ['/path/to/project']
" Add to your init.lua
vim.g.augment_workspace_folders = {'/path/to/project'}
```
Augment's Context Engine provides the best suggestions when it has access to your project's codebase and any related repositories. See more details in
[Configure additional workspace context](/setup-augment/workspace-context-vim).
## 3. Sign-in to Augment
Open Vim or Neovim and sign-in to Augment with the following command:
```vim
:Augment signin
```
* [Using Augment with Vim and Neovim](/using-augment/vim-neovim)
* [Configure keyboard shortcuts](/setup-augment/vim-keyboard-shortcuts)
# Install Augment for Visual Studio Code
Source: https://docs.augmentcode.com/setup-augment/install-visual-studio-code
Augment in Visual Studio Code gives you powerful code completions, transformations, and chat capabilities integrated into your favorite code 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 VscodeLogo = () => ;
export const ExternalLink = ({text, href}) =>
{text}
;
} horizontal>
Install Augment for Visual Studio Code
## About Installation
Installing is easy and will take you less than a minute. You can install the extension directly from the Visual Studio Code Marketplace or follow the instructions below.
## Installing Augment for Visual Studio Code
You can download the latest version of Visual Studio Code from the . If you already have Visual Studio Code installed, you can update to the latest version by going to .
Click the Extensions icon in the sidebar to show
the Extensions panel.
Using the search bar in the Extensions panel, search for{" "}
.
Click to install the extension.
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).
## About pre-release versions
We regularly publish pre-release versions of the Augment extension. To use the pre-release version, go to the Augment extension in the Extensions panel and click and then .
Pre-release versions may sometimes contain bugs or otherwise be unstable. As with the released version, please report any problems by sending us [feedback](/troubleshooting/feedback).
# Setup Model Context Protocol servers
Source: https://docs.augmentcode.com/setup-augment/mcp
Use Model Context Protocol (MCP) servers with Augment to expand Augment's capabilities with external tools and data sources.
export const Command = ({text}) => {text};
export const Keyboard = ({shortcut}) =>
{shortcut}
;
## About Model Context Protocol servers
Augment Chat and Agent can utilize external integrations through Model Context Protocol (MCP) to access external system for information and integrate tools to take actions. MCP is an open protocol that provides a standardized way to connect AI models to different data sources and tools. MCP servers can be used to access local or remote databases, run automated browser testing, send messages to Slack, or even play music on Spotify.
## Configure MCP servers
Before you can use an integration in Chat or Agent, you'll need to configure the MCP server in . To access your Augment settings:
1. Press or go the the hamburger menu in the Augment panel
2. Select
3. Under Advanced, click
Add the server configuration to the array in the object. You'll need to install any dependencies for the server on your machine, in the example below both UV and Sqlite would need to be installed.
```json
"augment.advanced": {
"mcpServers": [
{
"name": "sqlite",
"command": "uvx",
"args": ["mcp-server-sqlite", "--db-path", "/path/to/test.db"]
}
]
}
```
Once all the MCP servers are added restart your editor. If you receive any errors, check the syntax to make sure closing brackets or commas are not missing.
## Server compatibility
Not all MCP servers are compatible with Augment's models. The MCP standard, implementation of specific servers, and Augment's MCP support are frequently being updated, so check compatibility frequently.
# Commands and shortcuts for Vim and Neovim
Source: https://docs.augmentcode.com/setup-augment/vim-keyboard-shortcuts
Augment flexibly integrates with your editor to provide keyboard shortcuts for common actions. Customize your keymappings to quickly accept suggestions and chat with Augment.
export const Command = ({text}) => {text};
export const Keyboard = ({shortcut}) =>
{shortcut}
;
## All available commands
| Command | Action |
| :---------------------------------------------- | :------------------------------------------ |
| | Globally enable suggestions (on by default) |
| | Globally disable suggestions |
| | Send a chat message to Augment |
| | Start a new chat conversation |
| | Toggle the chat panel visibility |
| | Start the sign in flow |
| | Sign out of Augment |
| | View the current status of the plugin |
| | View the plugin log |
## Creating custom shortcuts
You can create custom shortcuts for any of the above commands by adding mappings to your `.vimrc` or `init.lua` file. For example, to create a shortcut for the :Augment chat\* commands, you can add the following mappings:
```vim
" Send a chat message in normal and visual mode
nnoremap ac :Augment chat
vnoremap ac :Augment chat
" Start a new chat conversation
nnoremap an :Augment chat-new
" Toggle the chat panel visibility
nnoremap at :Augment chat-toggle
```
## Customizing accepting a completion suggestion
By default is used to accept a suggestion. If you want to use a key other than to accept a suggestion, create a mapping that calls `augment#Accept()`. The function takes an optional arugment used to specify the fallback text to insert if no suggestion is available.
```vim
" Use Ctrl-Y to accept a suggestion
inoremap call augment#Accept()
" Use enter to accept a suggestion, falling back to a newline if no suggestion
" is available
inoremap call augment#Accept("\n")
```
You can disable the default mapping by setting `g:augment_disable_tab_mapping = v:true` before the plugin is loaded.
# Keyboard Shortcuts for Visual Studio Code
Source: https://docs.augmentcode.com/setup-augment/vscode-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 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 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 Command = ({text}) => {text};
export const Keyboard = ({shortcut}) =>
{shortcut}
;
## 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 | then | |
| Menu bar | | |
| Command palette | then search | |
## General
| Action | Recommended shortcut |
| :-------------------- | :------------------------------------------ |
| Open Augment panel | |
| Show Augment commands | |
## Chat
| Action | Default shortcut |
| :----------------------- | :------------------------------------ |
| Focus or open Chat panel | |
## Next Edit
| Action | Default shortcut |
| :---------------- | :--------------------------------------------------- |
| Go to next | |
| Go to previous | |
| Accept suggestion | |
| Reject suggestion | |
## Instructions
| Action | Default shortcut |
| :---------------- | :---------------------------------------------- |
| Start instruction | |
| Accept | |
| Reject | |
## Completions
| Action | Default keyboard shortcut |
| :----------------------------- | :----------------------------------------------------- |
| Accept inline suggestion | |
| Accept next word of suggestion | |
| Accept next line of suggestion | None (see below) |
| Reject suggestion | |
| Ignore suggestion | Continue typing through the suggestion |
| Toggle automatic completions | |
**Recommended shortcuts**
We recommend updating your keybindings to include the following shortcuts to
make working with code suggestions even easier. These changes update the
default behavior of Visual Studio Code.
| Action | Recommended shortcut |
| :----------------------------- | :--------------------------------- |
| Accept next line of suggestion | |
To update keyboard shortcuts, use one of the following:
| Method | Action |
| :-------------- | :------------------------------------------------------------------------------------------------------- |
| Keyboard | then |
| Menu bar | |
| Command palette | then search |
## General
| Action | Recommended shortcut |
| :-------------------- | :------------------------------------------ |
| Open Augment panel | |
| Show Augment commands | |
## Chat
| Action | Default shortcut |
| :----------------------- | :------------------------------------ |
| Focus or open Chat panel | |
## Next Edit
| Action | Default shortcut |
| :---------------- | :--------------------------------------------------- |
| Go to next | |
| Go to previous | |
| Accept suggestion | |
| Reject suggestion | |
## Instructions
| Action | Default shortcut |
| :---------------- | :---------------------------------------------- |
| Start instruction | |
| Accept | |
| Reject | |
## Completions
| Action | Default keyboard shortcut |
| :----------------------------- | :----------------------------------------------------- |
| Accept inline suggestion | |
| Accept next word of suggestion | |
| Accept next line of suggestion | None (see below) |
| Reject suggestion | |
| Ignore suggestion | Continue typing through the suggestion |
| Toggle automatic completions | |
**Recommended shortcuts**
We recommend updating your keybindings to include the following shortcuts to
make working with code suggestions even easier. These changes update default
behavior of Visual Studio Code.
| Action | Recommended shortcut |
| :----------------------------- | :--------------------------------- |
| Accept next line of suggestion | |
# Add context to your workspace
Source: https://docs.augmentcode.com/setup-augment/workspace-context-vim
You can add additional context to your workspace–such as additional repositories and folders–to give Augment a full view of your system.
export const Keyboard = ({shortcut}) =>
{shortcut}
;
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
;
};
## About Workspace Context
Augment is powered by its deep understanding of your code. You'll need to configure your project's source in your workspace context to get full codebase understanding in your chats and suggestions.
Sometimes important parts of your system exist outside of the current project. For example, you may have seperate frontend and backend repositories or have many services across multiple repositories. Adding additional codebases to your workspace context will improve the code suggestions and chat responses from Augment.
## Add context to your workspace
Be sure to set `g:augment_workspace_folders` before the Augment plugin is loaded.
To add context to your workspace, in your `.vimrc` set `g:augment_workspace_folders` to a list of paths to the folders you want to add to your workspace context. For example:
```vim
let g:augment_workspace_folders = ['/path/to/folder', '~/path/to/another/folder']
```
You may want to ignore specific folders, like `node_modules`, see [Ignoring files with .augmentignore](/setup-augment/sync#ignoring-files-with-augmentignore) for more details.
After adding a workspace folder and restarting Vim, the output of the command will include the syncing progress for the added folder.
# Add context to your workspace
Source: https://docs.augmentcode.com/setup-augment/workspace-context-vscode
You can add additional context to your workspace–such as additional repositories and folders–to give Augment a full view of your system.
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
;
};
export const Command = ({text}) => {text};
## About Workspace Context
Augment is powered by its deep understanding of your code. Sometimes important parts of your system exist outside of the current workspace you have open in your IDE. For example, you may have seperate frontend and backend repositories or have many services across multiple repositories. Adding additional context to your workspace will improve the code suggestions and chat responses from Augment.
## View Workspace Context
To view your Workspace Context, click the folder icon in the top right corner of the Augment sidebar panel.
## Add context to your workspace
To add context to your workspace, click at the bottom of the Source Folders section of the context manager. From the file browser select the folders you want to add to your workspace context and click .
## View sync status
When viewing Workspace Context, each file and folder will have an icon that indicates whether its sync status. The following icons indicate the sync status of each file in your workspace:
| Indicator | Status |
| :-------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------- |
| | Synced, or sync in progress |
| | Not synced |
| | Some files within the folder are synced |
# Index your workspace
Source: https://docs.augmentcode.com/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
```
# Disable GitHub Copilot
Source: https://docs.augmentcode.com/troubleshooting/disable-copilot
Disable additional code assistants, like GitHub Copilot, to avoid conflicts and unexpected behavior.
export const Command = ({text}) => {text};
export const Keyboard = ({shortcut}) =>
{shortcut}
;
## About additional code assistants
Augment is a code assistant that integrates into your favorite IDE's code suggestion system. When multiple code assistants are enabled, they can conflict with each other and cause unexpected behavior. There are multiple ways to prevent conflicts, including uninstalling the additional code assistants or disabling them. For the most up to date instructions on disabling other assistants, please refer to their documentation.
### Disable GitHub Copilot
Click the Extensions icon in the sidebar, or use the keyboard shortcut to showthe Extensions panel.
Using the search bar in the Extensions panel, search for .
Click `Disable` to disable the extension, and click .
### Disable GitHub Copilot inline completions
Click the GitHub Copilot icon in the status bar, or use the keyboard
shortcut to show the Command Palette.
Search or scroll for in the Command Palette.
Click to disable inline code completions.
For these instructions we use *JetBrains IntelliJ* as an example; please substitute the name of your JetBrains IDE for *IntelliJ* if you are using a different IDE.
### Disable GitHub Copilot
From the menu bar, go to , or use the
keyboard shortcut to open the Settings window. Select
from the sidebar.
Switch to the tab in the Plugins panel. Using the search bar in the Plugins panel, search for .
Click to disable the extension. Then click to close the
Settings window. You will need to restart your IDE for the changes to take effect.
### Disable GitHub Copilot inline completions
Click the GitHub Copilot icon in the status bar to show the plugin menu.
Click to disable inline code completions from GitHub Copilot.
# Feedback
Source: https://docs.augmentcode.com/troubleshooting/feedback
We love feedback, and want to hear from you. We want to make the best AI-powered code assistant so you can get more done.
Feedback helps us improve, and we encourage you to share your feedback on every aspect of using Augment—from suggestion and chat response quality, to user experience nusances, and even how we can improve getting your feedback.
### Reporting a bug
To report a bug, please send an email to [support@augmentcode.com](mailto:support@augmentcode.com). Include as much detail to reproduce the problem as possible; screenshots and videos are very helpful.
### Feedback on completions
We are always balancing the needs for speed and accuracy. We want to know when you get a poor suggestion, hallucination, or a completion that actually doesn't work. The History panel has a log of all of your completions; we encourage you to use it to send us feedback on the completions you've received.
Providing feedback directly in your IDE through the History panel is currently
only available in Visual Studio Code.
Open the History panel by clicking the Augment icon{" "}
{" "}
in the status bar at the bottom right corner of your editor, and select
`Show History` from the command menu.
Recent completions are listed in reverse chronological order. Locate the
completion you want to report and add complete the feedback form.
After completing the form, click either the red button for bad completions
or the green button for good completions.
### Feedback on chat
After each Chat interaction, you have the opportunity to provide feedback on the quality of the response. At the bottom of the response click either the thumbs up or thumbs down icon. Add additional information in the feedback field, and click `Send Feedback`.
# Chat panel steals focus
Source: https://docs.augmentcode.com/troubleshooting/jetbrains-stealing-focus
Fix issue where the Augment Chat panel takes focus while typing in JetBrains IDEs.
export const Command = ({text}) => {text};
## About focus issues in JetBrains IDEs
Some users on Linux systems have reported that the Augment Chat window steals focus from the editor while typing. This can interrupt your workflow and make it difficult to use the IDE effectively. This issue can be resolved by enabling off-screen rendering in your JetBrains IDE.
### Enable off-screen rendering
From the menu bar, go to . If the `idea.properties` file doesn't exist yet, you'll be prompted to create it.
Add the following line to the properties file:
```
augment.off.screen.rendering=true
```
Save the file and restart your JetBrains IDE for the changes to take effect.
After restarting, the Augment Chat window should no longer steal focus from the editor while you're typing.
# Request IDs
Source: https://docs.augmentcode.com/troubleshooting/request-id
Request IDs are generated with every code suggestion and chat interaction. Our team may ask you to provide the request ID when you report a bug or issue.
## Finding a Request ID for Chat
Open the Chat panel by clicking the Augment icon{" "}
{" "}
in the action bar on the left side of your editor.
If the chat reply you are interested is in a previous chat thread, find the
chat thread by clicking the at the top of the
chat panel and clicking the relevant chat thread.
Find the reply in question and click the icon
above the reply to copy the request ID to your clipboard.
## Finding a Request ID for Completions
Open the History panel by clicking the Augment icon{" "}
{" "}
in the status bar at the bottom right corner of your editor, and select
`Show History` from the command menu.
Recent requests are listed in reverse chronological order. Locate the
request you are interested in and copy the request ID by clicking on the
request ID, for example:
`-- Request ID: 7f67c0dd-4c80-4167-9383-8013b18836cb`
# Using Agent
Source: https://docs.augmentcode.com/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.
## 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.
### 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.
### 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.
**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/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.
## 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/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}
;
## 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/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
;
## 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/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.
### Focusing context for your conversation
You can specify context by clicking the icon at the top-left of the Chat panel or by in the input field. You can use fuzzy search to filter the list of context options quickly. There are a number of different types of additional context you can add to your conversation:
1. Highlighted code blocks
2. Specific files or folders within your workspace
3. 3rd party documentation, like Next.js documentation
#### Mentioning files and folders
Include specific files or folders in your context by typing `@` followed by the file or folder name. For example, `@routes.tsx` will include the `routes.tsx` file in your context. You can include multiple files or folders.
#### Mentioning 3rd party documentation
You can also mention 3rd party documentation in your context by typing `@` followed by the name of the documentation. For example, `@Next.js` will include Next.js documentation in your context. Augment provides nearly 300 documentation sets spanning across a wide range of domains such as programming languages, packages, software tools, and frameworks.
# Guidelines for Chat
Source: https://docs.augmentcode.com/using-augment/chat-guidelines
You can provide custom guidelines written in natural language to improve Chat with your preferences, best practices, styles, and technology stack.
export const Command = ({text}) => {text};
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
;
};
## About guidelines
Chat guidelines are natural language instructions that can help Augment reply with more accurate and relevant responses. Guidelines are perfect for telling Augment to take into consideration specific preferences, package versions, styles, and other implementation details that can't be managed with a linter or compiler. You can create guidelines for a specific workspace or globally for all chats; guidelines do not currently apply to Completions, Instructions, or Next Edit.
## User guidelines
#### Adding user guidelines
You can add user guidelines by clicking menu or starting an from the Chat input box. User guidelines will be applied to all future chats in all open editors.
1. Select
2. Enter your guidelines (see below for tips)
3. Click
#### Updating or removing user guidelines
You can update or remove your guidelines by clicking on the context chip. Update or remove your guidelines and click . Updating or removing user guidelines in any editor will modify them in all open editors.
## Workspace guidelines
You can add an `.augment-guidelines` file to the root of a repository to specify a set of guidelines that Augment Chat will follow for all Chat sessions on the codebase. The `.augment-guidelines` file should be added to your version control system so that everyone working on the codebase has the same guidelines.
## Tips for good guidelines
* Provide guidelines as a list
* Use simple, clear, and concise language for your guidelines
* Asking for shorter or code-only answers may hurt response quality
#### User guideline examples
* Ask for additional explaination (e.g., For Typescript code, explain what the code is doing in more detail)
* Set a preferred language (e.g, Respond to questions in Spanish)
#### Workspace guideline examples
* Identifying preferred libraries (e.g., pytest vs unittest)
* Identifying specific patterns (e.g., For NextJS, use the App Router and server components)
* Rejecting specific anti-patterns (e.g., a deprecated internal module)
* Defining naming convensions (e.g., functions start with verbs)
#### Limitations
Guidelines are currently limited to a maximum of 2000 characters.
# Example Prompts for Chat
Source: https://docs.augmentcode.com/using-augment/chat-prompts
Using natural language to interact with your codebase unlocks a whole new way of working. Learn how to get the most out of Chat with the following example prompts.
## About chatting with your codebase
Augment's Chat has deep understanding about your codebase, dependencies, and best practices. You can use Chat to ask questions about your code, but it also can help you with general software engineering questions, think through technical decisions, explore new libraries, and more. Here are a few example prompts to get you started.
## Explain code
* Explain this codebase to me
* How do I use the Twilio API to send a text message?
* Explain how generics work in TypeScript and give me a simple example
## Finding code
* Where are all the useEffect hooks that depend on the 'currentUser' variable?
* Find the decorators that implement retry logic across our microservices
* Find coroutines that handle database transactions without a timeout parameter
## Generate code
* Write a function to check if a string is a valid email address
* Generate a middleware function that rate-limits API requests using a sliding window algorithm
* Create a SQL query to find the top 5 customers who spent the most money last month
## Write tests
* Write integration tests for this API endpoint
* What edge cases have I not included in this test?
* Generate mock data for testing this customer order processing function
## Refactor and improve code
* This function is running slowly with large collections - how can I optimize it?
* Refactor this callback-based code to use async/await instead
* Rewrite this function in Rust
## Find and fix errors
* This endpoint sometimes returns a 500 error. Here's the error log - what's wrong?
* I'm getting 'TypeError: Cannot read property 'length' of undefined' in this component.
* Getting CORS errors when my frontend tries to fetch from the API
# Completions
Source: https://docs.augmentcode.com/using-augment/completions
Use code completions to get more done. Augment's radical context awareness means more relevant suggestions, fewer hallucinations, and less time hunting down documentation.
export const MoreVertIcon = () =>
;
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 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};
## About Code Completions
Augment's Code Completions integrates with your IDE's native completions system to give you autocomplete-like suggestions as you type. You can accept all of a suggestion, accept partial suggestions a word or a line at a time, or just keep typing to ignore the suggestion.
## Using Code Completions
To use code completions, simply start typing in your IDE. Augment will provide suggestions based on the context of your code. You can accept a suggestion by pressing , or ignore it by continuing to type.
For example, add the following function to a TypeScript file:
```typescript
function getUser(): Promise;
```
As you type `getUser`, Augment will suggest the function signature. Press to accept the suggestion. Augment will continue to offer suggestions until the function is complete, at which point you will have a function similar to:
```typescript
function getUser(): Promise {
return fetch("/api/user/1")
.then((response) => response.json())
.then((json) => {
return json as User;
});
}
```
### Accepting Completions
We recommend configuring a custom keybinding to accept a word or line, see
[Keyboard shortcuts](/setup-augment/vscode-keyboard-shortcuts) for more
details.
| Action | Default keyboard shortcut |
| :----------------------------- | :---------------------------------------------------------------- |
| Accept inline suggestion | |
| Accept next word of suggestion | |
| Accept next line of suggestion | None (see above) |
| Reject suggestion | |
| Ignore suggestion | Continue typing through the suggestion |
| Toggle automatic completions | VSCode: |
| | JetBrains: |
We recommend configuring a custom keybinding to accept a word or line, see
[Keyboard shortcuts](/setup-augment/vscode-keyboard-shortcuts) for more
details.
| Action | Default keyboard shortcut |
| :----------------------------- | :---------------------------------------------------------------- |
| Accept inline suggestion | |
| Accept next word of suggestion | |
| Accept next line of suggestion | None (see above) |
| Reject suggestion | |
| Ignore suggestion | Continue typing through the suggestion |
| Toggle automatic completions | VSCode: |
| | JetBrains: |
### Disabling Completions
You can disable automatic code completions by clicking the overflow menu iconat the top-right of the Augment panel, then selecting .
You can disable automatic code completions by clicking the Augment icon in the status bar at the bottom right corner of your IDE, then selecting .
### Enable Completions
If you've temporarily disabled completions, you can re-enable them by clicking the overflow menu iconat the top-right of the Augment panel, then selecting .
If you've temporarily disabled completions, you can re-enable them by clicking the Augment icon in the status bar at the bottom right corner of your IDE, then selecting .
# Instructions
Source: https://docs.augmentcode.com/using-augment/instructions
Use Instructions to write or modify blocks of code using natural language. Refactor a function, write unit tests, or craft any prompt to transform your code.
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 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 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
;
};
## About Instructions
Augment's Instructions let you use natural language prompts to insert new code or modify your existing code. Instructions can be initiated by hitting and entering an instruction inside the input box that appears in the diff view. The change will be applied as a diff to be reviewed before accepting.
## Using Instructions
To start a new Instruction, there are two options. You can select & highlight the code you want to change or place your cursor where you want new code to be added, then press . You'll be taken to a diff view where you can enter your prompt and see the results.
For example, you can generate new functions based on existing code:
```
> Add a getUser function that takes userId as a parameter
```
Your change will be made as a diff, so you can review the suggested updates before modifying your code. Use the following shortcuts or click the options in the UI to accept or reject the changes.
| Action | Shortcut |
| :---------------- | :---------------------------------------------- |
| Start instruction | |
| Accept | |
| Reject | |
| Action | Shortcut |
| :---------------- | :---------------------------------------------- |
| Start instruction | |
| Accept | |
| Reject | |
# Next Edit
Source: https://docs.augmentcode.com/using-augment/next-edit
Use Next Edit to flow through complex changes across your codebase. Cut down the time you spend on repetitive work like refactors, library upgrades, and schema changes.
export const NextEditSettingsIcon = () =>
;
};
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 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 Command = ({text}) => {text};
export const Keyboard = ({shortcut}) =>
{shortcut}
;
## About Next Edit
Next Edit helps you complete your train of thought by suggesting changes based on
your recent work and other context. You can jump to the next edit and quickly accept or
reject the suggested change with a single keystroke.
## Using Next Edit
When Next Edit has a suggestion available, you will see a gutter icon and a summary
of the change in gray at the end of the line.
To jump to the next suggestion, press and
after reviewing the change, press to accept
or to reject. If there are multiple
changes, press to accept and go to the
next suggestion.
{/*TODO(arun): Take screenshots with keybindings. */}
By default, Next Edit will briefly highlight which parts of the existing code will
change before applying the change and highlighting the new code. Use Undo
() and Redo
() to manually review the change.
You can configure this behavior in your Augment extension settings.
### Keyboard Shortcuts
| Action | Default shortcut |
| :---------------- | :--------------------------------------------------- |
| Go to next | |
| Go to previous | |
| Accept suggestion | |
| Reject suggestion | |
| Action | Default shortcut |
| :---------------- | :--------------------------------------------------- |
| Go to next | |
| Go to previous | |
| Accept suggestion | |
| Reject suggestion | |
### Next Edit Indicators And Actions
There are several indicators to let you know Next Edits are available:
1. **Editor Title Icon** (Top Right): Changes colors when next edits are available.
Click on the icon to open the next edit menu for
additional actions like enabling/disabling the feature or accessing settings.
2. **Gutter Icon** (Left) - Indicates which lines will be changed by the suggestion
and whether it will insert, delete or change code.
3. **Grey Text** (Right) - appears on the line with the suggestion on screen with a
brief summary of the change and the keybinding to press (typically
).
4. **Hint Box** (Bottom Left) - appears when the next suggestion is off screen with
brief summary of the change and the keybinding to press (typically
).
The tooltip also presents a few actions as icons:
* Toggles showing diffs for suggestions in the tooltip.
* Opens Next Edit settings.
### Next Edit Settings
You can configure Next Edit settings in your Augment extension settings.
To open Augment extension settings, either navigate to the option through the pencil
menu, or open the Augment Commands panel by pressing
and select .
Here are some notable settings:
* : Use to enable or
disable the feature.
* : When enabled, Next
Edits will suggest changes in other files via the hint box.
* : When enabled, Next
Edits will automatically apply changes when you jump to them.
* : When enabled,
Next Edits will show a diff of the suggested change in the hover.
* : When enabled,
Next Edits will highlight all lines with a suggestion in addition to showing gutter
icons and grey text.
# Using Augment for Slack
Source: https://docs.augmentcode.com/using-augment/slack
Chat with Augment directly in Slack to explore your codebase, get instant help, and collaborate with your team on technical problems.
export const Keyboard = ({shortcut}) =>
{shortcut}
;
export const Command = ({text}) => {text};
## About Augment for Slack
Augment for Slack brings the power of Augment Chat to your team's Slack workspace. Mention in any channel or start a DM with Augment to have deep codebase-aware conversations with your team. Before you can use Augment for Slack, you will need to [install the Augment Slack App](/setup-augment/install-slack-app).
## Adding Augment to Channels
Mention to add it to any public or private channel.
*Note: To protect your code, Augment excludes repository context in channels with external members.*
## Starting Conversations in Channels
Mention anywhere in your message or thread to start a conversation. Augment will consider the entire thread's context when responding. Remove messages by adding a ❌ reaction.
## Direct Messages
While group discussions help share knowledge, you can also have private conversations with Augment. Access it by:
* Clicking the Augment logo in the top right of your Slack workspace
* Finding it under in the Slack sidebar
* Pressing and searching for
If you don't see the Augment logo, add it to your [navigation bar](/setup-augment/install-slack-app#3-add-augment-to-the-slack-navigation-bar). *If you don't see this option, contact your workspace admin to [re-install the App](/setup-augment/install-slack-app#2-install-slack-app).*
You do not need to mention Augment in direct messages - it will respond to every message!
## Restricting where Augment can be used
Augment already avoids responding with codebase context in external channels, to protect your codebase from Slack users outside of your organization. Beyond this, you can also further restrict what channels Augment can be used in, with an allowlist. If configured, Augment will only respond in channels or DMs that are in the allowlist. To use this feature, contact us.
## Repository Context
Augment uses the default branch (typically `main`) of your linked repositories. Currently, other branches aren't accessible.
If you have multiple repositories installed, use to choose which repository Augment should use for the current conversation. This selection applies to the specific channel or DM where you run the command, allowing you to work with different repositories in different conversations.
## Feedback
Help us improve by reacting with 👍 or 👎 to Augment's responses, or use the `Send feedback` message shortcut. We love hearing from you!
# Chat
Source: https://docs.augmentcode.com/using-augment/vim-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 Next = ({children}) =>
Next steps
{children}
;
export const Keyboard = ({shortcut}) =>
{shortcut}
;
export const Command = ({text}) => {text};
## Using chat
Chat is a new way to work with your codebase using natural language. Use Chat to explore your codebase, quickly get up to speed on unfamiliar code, and get help working through a technical problem.
| Command | Action |
| :---------------------------------------------- | :------------------------------- |
| | Send a chat message to Augment |
| | Start a new chat conversation |
| | Toggle the chat panel visibility |
### Sending a message
You can send a message to Chat using the command. You can send your message as an optional argument to the command or enter it into the command-line when prompted. Each new message will continue the current conversation which will be used as context for your next message.
**Focusing on selected text**
If you have text selected in `visual mode`, Augment will automatically include it in your message. This is useful for asking questions about specific code or requesting changes to the selected code.
### Starting a new conversation
You can start a new conversation by using the command.
* [Using Completions](/using-augment/vim-completions)
* [Configure keyboard shortcuts](/setup-augment/vim-keyboard-shortcuts)
# Completions
Source: https://docs.augmentcode.com/using-augment/vim-completions
Use code completions to get more done. Augment’s radical context awareness means more relevant suggestions, fewer hallucinations, and less time hunting down documentation.
export const Next = ({children}) =>
Next steps
{children}
;
export const Keyboard = ({shortcut}) =>
{shortcut}
;
export const Command = ({text}) => {text};
## Using completions
Augment’s code completions integrates with Vim and Neovim to give you autocomplete-like suggestions as you type. Completions are enable by default and you can use to accept a suggestion.
| Command | Action |
| :--------------------------------------- | :------------------------------------------ |
| | Accept the current suggestion |
| | Globally enable suggestions (on by default) |
| | Globally disable suggestions |
### Customizing accepting a suggestion
If you want to use a key other than to accept a suggestion, create a mapping that calls `augment#Accept()`. The function takes an optional arugment used to specify the fallback text to insert if no suggestion is available.
```vim
" Use Ctrl-Y to accept a suggestion
inoremap call augment#Accept()
" Use enter to accept a suggestion, falling back to a newline if no suggestion
" is available
inoremap call augment#Accept("\n")
```
You can disable the default mapping by setting `g:augment_disable_tab_mapping = v:true` before the plugin is loaded.
* [Using Chat](/using-augment/vim-chat)
* [Configure keyboard shortcuts](/setup-augment/vim-keyboard-shortcuts)