> For the complete documentation index, see [llms.txt](https://docs.terraforge.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.terraforge.io/tutorials/first-steps/2-first-terraform-stack/2.1-stack-readme.md).

# 2.1 - Source Code Editor

{% embed url="<https://beta-terraforge-public-assets.s3.amazonaws.com/first-steps-2.1-source-code-editor.mp4>" %}

## Steps

1. Select **main.tf** in the file tree and add the following Terraform code:\
   `resource "local_file" "txt" {`\
   &#x20; `filename = "tutorial.txt"`  \
   &#x20; `content  = "Hello world!"`\
   `}`
2. Click **SAVE**

{% hint style="info" %}
Your Terraform (HCL) source code is validated as you type!
{% endhint %}

{% hint style="success" %}
On the right side you can switch between the **CODE** view, **FORM** builder or official Terraform **DOCS** <img src="/files/-LlY-BAlBqWRa9Gk2DCG" alt="" data-size="original">
{% endhint %}
