> ## Documentation Index
> Fetch the complete documentation index at: https://docs.augmentcode.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Applying code blocks from Chat

> Use Chat to explore your codebase, quickly get up to speed on unfamiliar code, and get help working through a technical problem.

![Augment Chat Apply](https://mintcdn.com/augment-mtje7p526w/r-azeXhOS4FbEUi5/images/chat-apply.png?fit=max\&auto=format\&n=r-azeXhOS4FbEUi5\&q=85\&s=b461dba46612cb6cc46db000bebb7566)

## 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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.