---
title: Editor menus
project: Code
version: 2.0
section: reference
language: en
license: MIT
url: https://totaljs.es/docs/code/2-0/reference/editor-menus/
updated: 2026-11-19T04:32:09.378Z
---

# Editor menus

> What the editor options and the right-click menu of the code offer.

The editor has two menus. The items change with the type of file and with your selection.

## Editor options

Click the gear icon to the left of the tabs.

![The editor options menu](/files/Janvt13OR61f.webp)

| Item | What it does |
|---|---|
| **Reload** | Loads the file from the server again |
| **Find** | Goes to the search box of the file |
| **Localize current file** | Copies the marked texts of the file. See [Translate an application](../../guides/translate/) |
| **Restore from backup** | Opens the [backups](../../guides/backups/) of the file |
| **To-Do list** | Opens the [to-do list](../../guides/todo/) |
| **Output panel** | Opens the results of your requests |
| **Show log file** | Opens the [log](../../guides/logs/) |
| **Clipboard** | Opens your [notes](../../guides/clipboard/) |
| **Localize files** | Collects the marked texts of the project |
| **Diff resource tool** | Compares two resource files |
| **Download source-code** | Downloads the project. See [Download and synchronize](../../guides/bundles-sync/) |
| **Create Wiki** | Creates a [wiki page](../../guides/wiki/) |
| **Download bundle locally** | Downloads a bundle of the application |

## Right-click menu

Select some text and right-click it.

![The right-click menu of a selection](/files/Janvt33PR60f.webp)

### Encode

Replaces the selection with its encoded form: **Base64**, **Hex**, **Encode URI**, **Escape**, **Slug**, **HASH**, **Localize**, **MD5**, **SHA-1**, **SHA-256**, **SHA-512**, **CRC-32**, **CRC-32 unsigned**, **JSON escape** and **Optimize for search**.

### Decode

Replaces the selection with its decoded form: **Hex**, **Base64** and **Decode URI**.

### Minify code

Makes the selection shorter: **JavaScript**, **HTML**, **CSS** and **JSON**.

### Tools

| Item | What it does |
|---|---|
| **Upper Case** | Changes the selection to capital letters |
| **Lower Case** | Changes the selection to small letters |

### Insert

Adds a value at the cursor: **UID**, **UID random**, **UID16**, **GUID**, **Token**, **Password**, **URL / Hostname**, **IP address - my** and **Date / Time**.

### Other items

| Item | What it does |
|---|---|
| **Comment** | Turns the selected lines into comments |
| **Sort** | Sorts the selected lines |
| **Run script** | [Runs](../../guides/run-scripts/) the current `.js` or `.sh` file |
| **Open DB viewer** | Opens the [DB viewer](../../guides/db-viewer/) for the selected connection |

The **AI** items and **Code review** need a **Total.js API Token** in [Settings](../settings/).
