content/telegraf/controller/configs/ui/code-editor.md
Use the {{% product-name %}} Code Editor to upload, write, or edit raw Telegraf configuration TOML.
{{< img-hd src="/img/telegraf/controller-code-editor.png" alt="Telegraf Controller Code Editor" />}}
The Code Editor is the default view when managing a configuration. If it is not displayed, click the Code Editor tab.
[!Important]
Switching from the Code Editor to the Telegraf Builder
Switching from the Code Editor to the Telegraf Builder will reformat the TOML. When reformatting, Telegraf Builder does not preserve the following:
- Comments
- Indentation
- Plugin Order
To upload a Telegraf configuration file to {{% product-name %}}, click Upload files to open a file selection dialogue box or drag and drop your configuration file into the Code Editor.
{{% product-name %}} supports TOML-formatted files with the following extensions:
.toml.conf.txt[!Important] Uploaded configuration files fully replace any existing configuration TOML.
The Code Editor is a feature-rich, browser-based editor that lets you write code using keyboard shortcuts similar to those in popular editors and IDEs.
The Code Editor uses CodeMirror's default keymaps. The following bindings come from the reference keymaps.
The {{% product-name %}} Code Editor automatically applies special syntax highlighting to dynamic values (parameters, environment variables, and secrets) in your configuration TOML to make them more visible.
For more information about using dynamic values, see Use dynamic values.