---
title: Keep a local copy of the files
project: TotalCode
version: Latest
section: guides
language: en
license: 
url: https://totaljs.es/docs/totalcode/latest/guides/local-copy/
updated: 2026-12-02T15:40:00.797Z
---

# Keep a local copy of the files

> Code keeps your projects on the server. With TotalCode it can also write their files on your computer, to have a copy, search in them or commit them with git.

## Prepare it

1. In TotalCode, press the pencil of the card, and choose a folder in **Path to repositories** with **Choose…**. Press **Save**.
2. In Code, open the settings of the project, and write in **Folder name** how its folder is called, for example `shop`.

The files of that project go to `shop`, inside the folder that you chose. Each project has its own.

## Write the files

| Choice in Code | Where it is | What it does |
| --- | --- | --- |
| **Save locally** | The menu of the editor | Writes the file that is open |
| **Download last changes locally** | The menu of the editor | Writes the files that changed, and removes those that were removed |
| **Download source-code locally** | The menu of the editor | Writes all the files of the project, one by one |
| **Download file locally** | The menu of a file, in the tree | Writes that file |

Without **Folder name**, the first three are not in the menu. A large project takes a while. Code shows how far it is.

## Write each file when you save it

In your account, inside Code, look that **Always local storing files in Electron version** is marked. The name is from the earlier app, and it works in TotalCode. Each time that you save a file on the server, it is also written on your computer.

With it, a file that you remove in Code is removed from your computer too.

## Know before you start

> The copy goes in one direction only, from the server to your computer. What you change in those files on your computer does not reach Code, and is lost the next time that Code writes them.

A page of Code can write only inside the folder of its card. If it asks for a file outside, TotalCode refuses it.

To stop, empty **Path to repositories**. The files that are there stay.
