--- title: Get started with TotalEdit project: TotalEdit version: Latest section: guides language: en license: url: https://totaljs.es/docs/totaledit/latest/guides/getting-started/ updated: 2026-12-02T15:40:06.047Z --- # Get started with TotalEdit > TotalEdit is an editor for code and text: a folder on the left, its files in tabs, and every file, line and function a few keys away. ![A project open in TotalEdit, with its files on the left and the help of a function of Total.js](https://totaljs.es/_totaldesktop/shots/totaledit-1.webp) ## Install it Download TotalEdit for macOS, Windows or Linux from [its page](https://totaljs.es/en/totaldesktop/totaledit/#download). [Install the apps](/totaldesktop/latest/guides/install/) explains each system step by step. ## The first time 1. Open TotalEdit and press **Open a folder**. Choose the folder of a project: its files appear on the left. 2. Press ⌘P on the Mac, Ctrl+P on Windows and Linux. Write a few letters of the name of a file and press Enter: it opens in a tab. 3. Change something. A dot in the tab says that it is not saved. 4. Press ⌘S on the Mac, Ctrl+S on Windows and Linux. You can close the window at any moment. The folder, the tabs and what you had not saved [come back](/totaledit/latest/guides/save-files/#close-and-come-back) when you open TotalEdit again. ## The parts of the window | Part | What it is for | | --- | --- | | **Files** | [The folder open](/totaledit/latest/guides/files/), as a tree | | **Find** | [Find a text](/totaledit/latest/guides/find-and-replace/#find-in-the-project) in all the files of the folder | | The tabs | [The files open](/totaledit/latest/guides/tabs-and-sides/), on one or two sides | | The bar at the bottom | Where the cursor is, and [how the file is written](/totaledit/latest/guides/file-format/). Press each part to change it | | The terminal | [Your shell](/totaledit/latest/guides/terminal/), under the code | | **Settings** | [The theme, the size of the text and the rest](/totaledit/latest/reference/settings/) | ## Every command in one place Press ⇧⌘P on the Mac, Ctrl+Shift+P on Windows and Linux, or the button **Every command** at the top. Write a few letters of what you want to do, choose it with the arrows and press Enter. The list shows the shortcut of each command that has one, and has commands that are nowhere else, such as **Sort the lines**. ![The list of commands, with their shortcuts](https://totaljs.es/_totaldesktop/shots/totaledit-3.webp) [Keyboard shortcuts](/totaledit/latest/reference/shortcuts/) has all the keys. --- title: Open and manage files project: TotalEdit version: Latest section: guides language: en license: url: https://totaljs.es/docs/totaledit/latest/guides/files/ updated: 2026-12-02T15:40:06.047Z --- # Open and manage files > Work with a whole folder or with single files. The tree on the left shows the folder open, and creates, renames and removes what is in it. ## Open a folder Press ⇧⌘O on the Mac, Ctrl+Shift+O on Windows and Linux, or **Open another folder** at the top of the tree. The window has one folder at a time, and the tabs that you had stay open. To open a folder that is on a server, see [Work on a server](/totaledit/latest/guides/servers/). ## Open single files - Press ⌘O on the Mac, Ctrl+O on Windows and Linux, and choose one or more. - Drag them onto the window. - In your system, choose TotalEdit in the list of apps that open the file. TotalEdit does not take the place of your usual editor. - From a terminal, write `open -a TotalEdit notes.md` on the Mac, or `totaledit notes.md` on Linux. They open in tabs next to the folder that you have. If you drag a folder, it becomes the folder of the window, unless there are files with it: then only the files open. A file larger than 64 MB does not open, and neither does one that is not text. ## Make a file or a folder 1. Press the right button on a folder of the tree, or on a file that is next to where you want the new one. 2. Choose **New file…** or **New folder…** 3. Write its name and press **OK**. A new file opens at once. **New file in the project**, the plus at the top of the tree, makes it in the main folder. ## Rename and remove Press the right button on a file or a folder of the tree: - **Rename…** changes its name. If it is open, its tab follows it. - **Move to the Trash** removes it without asking. You can take it back from the Trash of your system. - **Show in Finder** on the Mac, **Show in its folder** on Windows and Linux, shows it outside TotalEdit. > In a folder on a server, **Delete…** is in the place of the Trash. It asks first, and what it deletes cannot be recovered. ## Move in the tree with the keyboard The arrows go from row to row. → opens a folder, and ← closes it or goes to the folder it is in. Enter opens a file, and Shift+F10 opens the menu. ## What the tree shows All the files of the folder, also the hidden ones, except `.git` and `.DS_Store`. A dot marks the files with changes not saved. When another app adds or removes files, the tree shows it as you come back to the window. --- title: Go to a file, a line or a function project: TotalEdit version: Latest section: guides language: en license: url: https://totaljs.es/docs/totaledit/latest/guides/go-to/ updated: 2026-12-02T15:40:06.047Z --- # Go to a file, a line or a function > One field takes you anywhere in the project. Open it with ⌘P on the Mac, Ctrl+P on Windows and Linux, or with the magnifying glass at the top. ## Go to a file Write some letters of its name, in order. They do not need to be together: `usrctl` finds `user-controller.js`. The name counts more than the folders, and you can write a part of the path too. Choose with the arrows and press Enter. ## Go to a line | You write | Where you go | | --- | --- | | `:12` | Line 12 of the file in front | | `user:12` | Line 12 of the file that `user` finds | ⌃G on the Mac, Ctrl+G on Windows and Linux, opens the field with the colon written. A press on the line and the column at the bottom of the window does the same. ## Go to a function, a type or a heading Write `@` and some letters of the name, or press ⌘R on the Mac, Ctrl+R on Windows and Linux. With `@` alone you see them all, in the order of the file. TotalEdit finds them by how the lines begin: - functions, classes, interfaces, types and enums of JavaScript and TypeScript, and functions that are kept in a variable with an arrow; - functions, structs, enums, traits and modules of Rust; - functions and classes of Python, and functions of Go; - headings of Markdown. Lines that begin with `#` and a space are taken as headings in any file, so the comments of a shell script or of Python are in the list too. To go where a name is defined, in this file or in another, use [the language help](/totaledit/latest/guides/language-help/). ## Which files it finds The files of the folder open, also the hidden ones. It leaves out `.git`, `node_modules`, and what your `.gitignore` files leave out. You can still open those from the tree. In [a folder on a server](/totaledit/latest/guides/servers/) the list of what is left out is another. --- title: Find and replace project: TotalEdit version: Latest section: guides language: en license: url: https://totaljs.es/docs/totaledit/latest/guides/find-and-replace/ updated: 2026-12-02T15:40:06.047Z --- # Find and replace > Find a text in the file in front, with or without replacing it, or in every file of the project. ## Find in the file 1. Press ⌘F on the Mac, Ctrl+F on Windows and Linux. A bar opens over the code. 2. Write the text. Each match is marked. 3. Press Enter or **next** for the next one, and **previous** to go back. Esc closes the bar. With it closed, F3 goes to the next match and Shift+F3 to the previous one. On the Mac, ⌘G and ⇧⌘G do it too. Three boxes change how it looks for the text: | Box | What it does | | --- | --- | | **match case** | Tells capital letters from small ones | | **regexp** | Reads the text as a regular expression | | **by word** | Finds whole words only | **all** selects every match, with [a cursor](/totaledit/latest/guides/many-cursors/) in each one. ## Replace in the file In the same bar, write the new text in **Replace**: - **replace** changes the match that is selected and goes to the next. - **replace all** changes them all. Undo takes it back in one step. With **regexp**, `$1` is the first group of the expression, `$2` the second, and `$&` the whole match. ## Find in the project 1. Press ⇧⌘F on the Mac, Ctrl+Shift+F on Windows and Linux. **Find** opens on the left. If you have some text selected, it is already written. 2. Press Enter. 3. Press a line to go to it. The buttons under the field are **Match case**, **Whole words** and **Regular expression**. While it looks, the button **Stop finding** stops it. ![The lines of a project where a word is, grouped by file](https://totaljs.es/_totaldesktop/shots/totaledit-2.webp) The lines are grouped by file. It shows 2,000 at most, and a plus after the number says that there are more: write a longer text to find fewer. ## What it finds in the project - It looks in the files on the disk. What you have not saved is not there yet. - It leaves out `.git`, `node_modules`, what your `.gitignore` files leave out, and files that are not text. - It only finds: there is no replacing in the whole project. In [a folder on a server](/totaledit/latest/guides/servers/) it looks in fewer files. --- title: Write in many places at once project: TotalEdit version: Latest section: guides language: en license: url: https://totaljs.es/docs/totaledit/latest/guides/many-cursors/ updated: 2026-12-02T15:40:06.047Z --- # Write in many places at once > With several cursors, what you type, delete or paste happens at each one. It is the quick way to change the same thing in many places. ## Add the next match 1. Put the cursor on a word, or select a text. 2. Press ⌘D on the Mac, Ctrl+D on Windows and Linux. The first time it selects the word, and then each press adds the next match. 3. Type the new text. If you added one too many, ⌘U on the Mac, Ctrl+U on Windows and Linux, takes back the last selection. ## Add every match Select a text and press ⌃⌘G on the Mac, Alt+F3 on Windows and Linux. The command is called **Select every match of the selection**. ## Add a cursor above or below Press ⌥⌘↑ or ⌥⌘↓ on the Mac, Ctrl+Alt+↑ or Ctrl+Alt+↓ on Windows and Linux. Each press adds one more line. ## Add cursors with the pointer - Hold ⌘ on the Mac, Ctrl on Windows and Linux, and click where you want another cursor. - Hold ⌥ on the Mac, Alt on Windows and Linux, and drag: it selects a column, with a cursor in each line. ## One cursor for each line Select several lines and press ⇧⌘L on the Mac, Ctrl+Shift+L on Windows and Linux. Each line becomes a selection of its own, with its cursor at the end. > The text of each line is still selected, so typing replaces it. To write at the end of the lines, press → first. ## Back to one cursor Press Esc. The bar at the bottom says how many cursors there are while there is more than one. [Insert an identifier](/totaledit/latest/guides/insert/) with several cursors, and each one gets a different value. --- title: Change lines and blocks project: TotalEdit version: Latest section: guides language: en license: url: https://totaljs.es/docs/totaledit/latest/guides/lines-and-blocks/ updated: 2026-12-02T15:40:06.047Z --- # Change lines and blocks > Move, copy, comment, sort and fold lines without selecting them by hand. Those without a key are in the list of commands: ⇧⌘P on the Mac, Ctrl+Shift+P on Windows and Linux. ## Move, copy and delete lines They work on the line of the cursor, or on all the lines of the selection. | Action | Mac | Windows and Linux | | --- | --- | --- | | Move up or down | ⌥↑ ⌥↓ | Alt+↑ Alt+↓ | | Copy below | ⇧⌘D | Ctrl+Shift+D | | Delete | ⇧⌘K | Ctrl+Shift+K | | New line below, from any column | ⌘↩ | Ctrl+Enter | ## Indent Tab indents the selected lines, and ⇧Tab takes a level away. [How the file is written](/totaledit/latest/guides/file-format/#indentation) says what a level is. ## Comment ⌘/ on the Mac, Ctrl+/ on Windows and Linux, turns lines into comments and back, with the signs of the language. The command is called **Comment or uncomment the lines**. ## Sort and clean lines These commands change the lines of the selection. With nothing selected, they change the whole file. | Command | What it does | | --- | --- | | **Sort the lines** | From A to Z, with capital and small letters as equals, and 2 before 10 | | **Remove repeated lines** | Keeps the first of the lines that are exactly the same, also when they are not together. Empty lines count: one stays | | **Reverse the lines** | Puts the last one first | ## Change the case **Upper case** and **Lower case** change what is selected, or the word of the cursor. ## Fold blocks Press the arrow next to the number of a line to fold its block, and again to open it. With the keyboard, use ⌥⌘[ and ⌥⌘] on the Mac, Ctrl+Shift+[ and Ctrl+Shift+] on Windows and Linux. **Fold everything** and **Unfold everything** do it in the whole file. The arrows are not there if you hide the line numbers in [the settings](/totaledit/latest/reference/settings/). --- title: Use tabs and two sides project: TotalEdit version: Latest section: guides language: en license: url: https://totaljs.es/docs/totaledit/latest/guides/tabs-and-sides/ updated: 2026-12-02T15:40:06.047Z --- # Use tabs and two sides > Each file opens in a tab. Put two files next to each other with a second side, which has its own tabs. ## Go from tab to tab Press ⌥⌘→ and ⌥⌘← on the Mac, Ctrl+Alt+→ and Ctrl+Alt+← on Windows and Linux. Ctrl+Tab and Ctrl+Shift+Tab work on every system. ## Move a tab Drag it along its side, or to the other one. From the list of commands, use **Move the tab to the left** and **Move the tab to the right**. ## Close tabs Close the one in front with ⌘W on the Mac, Ctrl+W on Windows and Linux, with its cross, or with the middle button of the mouse. On the Mac, ⌘W closes the window when no tab is left, and ⇧⌘W closes it at any moment. A press of the right button on a tab has more: - **Close the others** - **Close those to the right** and **Close those to the left** - **Close the saved ones** - **Close all** They work on the tabs of that side. If some have changes, TotalEdit asks once for all of them whether to save: **Save all**, **Don’t save** or **Cancel**. > **Don’t save** loses those changes. They do not come back when you open the tab again. ⇧⌘T on the Mac, Ctrl+Shift+T on Windows and Linux, opens the tab that you closed last, and then the one before. A new file that was never saved does not come back. ## Find or copy where a file is The menu of a tab also has: | Choice | What it does | | --- | --- | | **Copy the path** | Copies the whole path | | **Copy the path in the project** | Copies it from the folder open | | **Show in the files of the project** | Finds it in the tree, and opens the folders it is in | | **Show in Finder** or **Show in its folder** | Shows it outside TotalEdit | ## Two sides Press ⌘\ on the Mac, Ctrl+\ on Windows and Linux, or **Split into two sides** at the top. The tab in front moves to the new side, if there are others. - ⌘1 and ⌘2 on the Mac, Ctrl+1 and Ctrl+2 on Windows and Linux, go to the left and the right side. - **Move the tab to the other side** does what it says, from the menu of the tab or the list of commands. - The same key or button goes **Back to one side**: the tabs of both join, and none is closed. A file is open once. If you open it again, TotalEdit goes to the tab that it has. --- title: Save your work project: TotalEdit version: Latest section: guides language: en license: url: https://totaljs.es/docs/totaledit/latest/guides/save-files/ updated: 2026-12-02T15:40:06.047Z --- # Save your work > Save when you want to. What you have not saved is kept too, so closing the window loses nothing. ## Save | Action | Mac | Windows and Linux | | --- | --- | --- | | **Save** | ⌘S | Ctrl+S | | **Save as…** | ⇧⌘S | Ctrl+Shift+S | | **Save all** | ⌥⌘S | Ctrl+Alt+S | **Save all** saves the files that have a place on the disk. A new one, **Untitled**, needs a name first: save it on its own. TotalEdit writes the whole file next to the old one, and then puts it in its place. If something fails, the old one is still there. If you save a symbolic link, the file that it leads to changes, and the link stays a link. ## Close and come back Closing the window asks nothing. When you open TotalEdit again you find the folder, the tabs, the cursors and the text that was not saved. The terminals end, and do not come back. Closing a tab is different: if it has changes, TotalEdit asks whether to save them. ## When another app changes a file TotalEdit looks at it each time you come back to the window, and when it opens again. - If you had not changed the file, it is loaded again. - If you had, a bar says that another app changed it while you were editing it. **Load theirs** puts the version of the disk in the place of your text. **Keep mine** leaves yours, and the next time you save it replaces the other. - If the file is no longer there, its tab stays with its text. Save it to have it again. If you save while the bar is there, or before TotalEdit knew of the change, it asks: **Replace** puts your text in the place of the other, and **Cancel** leaves both as they are. --- title: Choose how a file is written project: TotalEdit version: Latest section: guides language: en license: url: https://totaljs.es/docs/totaledit/latest/guides/file-format/ updated: 2026-12-02T15:40:06.047Z --- # Choose how a file is written > TotalEdit finds the language, the indentation, the encoding and the line endings of each file, and keeps them. The bar at the bottom shows the four, and a press on each one changes it for that file. ## Language It decides the colours and the help. TotalEdit finds it by the name of the file, and has these: JavaScript, TypeScript, HTML, CSS, JSON, Markdown, Rust, Python, Go, PHP, Java, C and C++, C#, Kotlin, Swift, Ruby, Lua, SQL, YAML, TOML, XML, Shell and Dockerfile. SCSS and Less have the colours of CSS, and Svelte and Vue those of HTML. To choose another, press the name of the language. **Plain text** has no colours. A new file has no language until you save it with a name or choose one. ## Indentation TotalEdit reads the file to know whether it uses tabs or spaces, and how many. `Spaces: 4` is a level of four spaces, and `Tabs: 4` is a tab that looks four columns wide. Press it to choose **2 spaces**, **4 spaces**, **8 spaces** or **Tabs**. It changes what you write from then on: the lines that the file already has stay as they are. A file with nothing indented, or a new one, uses what [the settings](/totaledit/latest/reference/settings/) say. ## Encoding **UTF-8**, **UTF-8 with BOM** or **Latin-1**. A file that is not valid UTF-8 is read as Latin-1. If its letters look wrong, it has another encoding, which TotalEdit does not read. After you choose another, the file has a change to save, and is written in the new encoding when you save it. If it has a character that Latin-1 does not have, such as `€`, TotalEdit says so and does not save it. ## Line endings **LF (macOS, Linux)** or **CRLF (Windows)**. Choose another and save the file to change them all. > A file that mixes both is taken as CRLF, and all its lines end that way after you save it. --- title: Get help from your language project: TotalEdit version: Latest section: guides language: en license: url: https://totaljs.es/docs/totaledit/latest/guides/language-help/ updated: 2026-12-02T15:40:06.047Z --- # Get help from your language > A language server is a program that knows a language. If you have the one of your language installed, TotalEdit uses it to complete names, show errors and find where things are. ## Turn it on 1. Install the language server of your language, as its page says. [Language servers](/totaledit/latest/reference/language-servers/) has the ones that TotalEdit knows. 2. In TotalEdit, choose **Start the language servers again** in the list of commands, or open the app again. 3. Open the folder of the project and one of its files. `LSP`, at the bottom, says that a server helps with it. The help works in a folder of your computer. With a single file and no folder, or in [a folder on a server](/totaledit/latest/guides/servers/), there is none. ## While you write - The completions appear by themselves. The arrows choose one and Enter writes it. Ctrl+Space asks for them, on every system. - In a call, the help of its arguments appears. - The errors are underlined. Put the pointer on one to read it. ## Know a name Put the pointer on it to read its documentation. With the cursor on it: | Action | Key | | --- | --- | | **Go to the definition**, also in another file | F12 | | **Find the references**: a list of the lines that use it | Shift+F12 | | **Rename the symbol everywhere** | F2 | The three are in the menu of the right button too. Esc closes the list of references. > **Find the references** and **Rename the symbol everywhere** reach only the files that are on screen: the one in front on each side. Before you rename something that other files use, look for it in [the whole project](/totaledit/latest/guides/find-and-replace/#find-in-the-project) with **Whole words**, and change it there too. ## Format the file Choose **Format the file** in the list of commands. On Windows and Linux, Shift+Alt+F does it too. The server decides the style, with your indentation, and some servers do not format. ## Without a language server The file has its colours all the same. HTML, CSS, SQL, JavaScript, TypeScript, Python and Go also have some completions, such as tags, properties, keywords and names of the same file. In a Total.js project, [the help of Total.js](/totaledit/latest/guides/total-js/) needs no server. ## If the server stops TotalEdit says so and goes on without it. **Start the language servers again** brings it back. --- title: Get help with Total.js and jComponent project: TotalEdit version: Latest section: guides language: en license: url: https://totaljs.es/docs/totaledit/latest/guides/total-js/ updated: 2026-12-02T15:40:06.047Z --- # Get help with Total.js and jComponent > TotalEdit knows the API of Total.js 5 and of jComponent 20. It completes it, explains it and has snippets of the usual code, with nothing to install. ## Where it works It turns on by itself when the folder open is a Total.js 5 project: `total5` is in its `package.json`, or its `index.js` requires it. | Files | Help | | --- | --- | | JavaScript files of the server | Total.js 5 | | HTML files, and the JavaScript and CSS files in a `public` folder | jComponent 20 | The bar at the bottom says which one the file has, next to its language. ## What it does - **Completes** functions and what each call gives. After `DATA.find()` and a dot, you get `where`, `sort` and the rest. - **Explains** a name when the pointer is on it: how to call it, what it does, its arguments and what it gives. - **Follows the arguments** while you write a call, with the one that you are writing in bold. Esc hides it. ## The snippets They are among the completions. Write the start of the name, choose it, and fill in the parts: Tab goes to the next one. | Where | Some of them | | --- | --- | | Server | `NEWACTION`, `ROUTE API`, `ROUTE GET`, `ROUTE SOCKET`, `AUTH`, `MIDDLEWARE`, `plugin (server)`, `DATA find`, `RESTBuilder` | | Interface | `PLUGIN`, `COMPONENT`, `TAPI`, `exports.watch`, `exports.ajax`, `SETTER notify` | | HTML | `ui-component`, `ui-plugin`, `ui-bind`, `ui-input`, `@{if}`, `@{foreach}` | ## Turn it on or off In **Settings**, **Help for Total.js 5 and jComponent 20** has three choices: - **In projects that use Total.js 5**, the one at the start; - **Always**, in any folder and also in single files; - **Never**. Colours, icons and identifiers such as `UID()` are in [Insert colours, icons and values](/totaledit/latest/guides/insert/), and work in every project. --- title: Insert colours, icons and values project: TotalEdit version: Latest section: guides language: en license: url: https://totaljs.es/docs/totaledit/latest/guides/insert/ updated: 2026-12-02T15:40:06.047Z --- # Insert colours, icons and values > TotalEdit shows the colours and the Total.js icons that are in your code, and writes new ones for you, as well as identifiers, tokens and dates. ## Change a colour A small square before each colour shows how it looks. It finds colours written as `#hex`, `rgb()` and `hsl()`, with or without transparency. Colours by name, such as `red`, have no square. 1. Press the square, or press the right button on the colour and choose **Change the colour…** 2. Choose another: move in the large area, the hue and the opacity, write its value, or take one of the colours of the same file. 3. Press Esc, or click outside. The code changes while you choose, and keeps the way it was written. **HEX**, **RGB** and **HSL** change it. Esc does not take back what you chose: undo it as any other change. To write a new one, press the right button where you want it and choose **Insert a colour…** ## Change a Total.js icon An icon such as `ti ti-home` shows its drawing before its name. 1. Press the drawing, or put the cursor on the name and press F6. 2. Write what you look for, such as `user`. The arrows go from icon to icon. 3. Press Enter, or the icon. F6 anywhere else inserts an icon, with its class: `ti ti-home`. The icons come from the Total.js CDN, `cdn.componentator.com`, when a file names one or you open the list. TotalEdit keeps them to work without a connection, and asks for them again when they are more than two weeks old. ## Insert a value Press the right button in the code and choose **Insert UID, GUID, a token…** | Choice | What it writes | | --- | --- | | **UID() of Total.js** | An identifier like those that `UID()` makes | | **GUID** | A random GUID, with its hyphens | | **Random UID** | 12 small letters and digits | | **Token** | 35 letters and digits | | **Password** | 20 characters, without those that are easy to confuse, such as `l` and `1` | | **Date and time** | The time now, in UTC, such as `2030-01-31T10:20:30.000Z` | | **Timestamp** | The time now, in milliseconds since 1970 | With [several cursors](/totaledit/latest/guides/many-cursors/), each one gets its own identifier, token or password. What was selected is replaced. All of them are also in the list of commands, under **Insert**. --- title: Use the terminal project: TotalEdit version: Latest section: guides language: en license: url: https://totaljs.es/docs/totaledit/latest/guides/terminal/ updated: 2026-12-02T15:40:06.047Z --- # Use the terminal > TotalEdit has a terminal under the code, with the shell of your computer, opened in the folder of the project. ## Show and hide it Press Ctrl and the backtick key, on every system, the Mac too. It is the key to the left of 1 on most keyboards. The same keys: - open a terminal, if there is none; - take you to it, if you are in the code; - hide it, if you are in it. What runs in it goes on while it is hidden. ## Which shell it opens | System | Shell | | --- | --- | | macOS and Linux | The shell of your user, as when you sign in | | Windows | The Command Prompt. Write `powershell` in it to use PowerShell | Without a folder open, it starts in your home folder. A terminal stays where it is when you open another folder: open a new terminal for the new one. In [a folder on a server](/totaledit/latest/guides/servers/), the terminal is of your computer and not of the server. [TotalSSH](https://totaljs.es/en/totaldesktop/totalssh/) opens terminals on servers. ## Several terminals Press Ctrl, Shift and the backtick key, or the plus at the right. Each one has its tab, **Terminal 1**, **Terminal 2**, and a cross that closes it. > The cross of a terminal ends what runs in it, without asking. Closing the window ends them all, and they do not come back. ## Make it taller Drag its upper edge. With the keyboard, go to the edge with Tab and press ↑ or ↓, with Shift for larger steps. ## When the shell ends After `exit`, the tab says **(ended)**. Press Enter in the terminal to start another shell. ## The ⌥ key on the Mac In the terminal, ⌥ writes the signs of your keyboard, such as `@`, `#` or `\` on a Spanish or a German one. ⌥← and ⌥→ go from word to word. For the other keys of the shell with Meta, press Esc first and then the letter. --- title: Work on a server project: TotalEdit version: Latest section: guides language: en license: url: https://totaljs.es/docs/totaledit/latest/guides/servers/ updated: 2026-12-02T15:40:06.047Z --- # Work on a server > Open a folder of a server over SFTP, and edit its files as if they were on your computer. The server needs SSH, and nothing else installed. ## Open a folder on a server 1. Choose **Open a folder on a server…** in the list of commands: ⇧⌘P on the Mac, Ctrl+Shift+P on Windows and Linux. With no folder open, the button is also on the left. 2. Fill in the **Address**, the **Port** and the **User**. In **Name**, write how you want to see it in the list. 3. In **Sign in with**, choose **The SSH agent of the system**, **A key file** or **A password**. On Windows, the agent is the one of OpenSSH, and its service must be running. 4. In **Folder**, write its path. Leave it empty for the home folder of the user. 5. Press **Connect**. The server stays in the list, to open it again with a press. The pencil changes it and the bin forgets it, with its password, without asking. ## Trust the server The first time, TotalEdit shows the fingerprint of the server. Compare it with the one that your provider or your administrator gives you, and press **Trust and connect**. > If TotalEdit says that the server is not the one that you trusted before, find out why before you go on. It may have been installed again, or someone may be between you and it. ## The password The password, or the passphrase of the key, is asked when you connect. **Keep it in the keychain of the system** is marked: unmark it if you want to write it each time. It is never kept in a file of TotalEdit. ## What is different on a server - **Deleting is for ever.** There is no Trash. TotalEdit asks first. - **New files:** make them with **New file…** in the tree. An **Untitled** file can only be saved on your computer. - **Finding and going to a file** leave out `.git`, `node_modules`, `target`, `vendor`, `.cache`, `__pycache__`, `.venv`, `dist` and `build`, and do not read your `.gitignore`. Finding also skips the files larger than 2 MB, and looks in 20,000 files at most. - There is no [language help](/totaledit/latest/guides/language-help/). The help of [Total.js](/totaledit/latest/guides/total-js/) works. - [The terminal](/totaledit/latest/guides/terminal/) is of your computer. ## How a file is saved The new version is written next to the old one, and then takes its place, so a connection that is cut does not leave half a file. A symbolic link stays a link: what you save goes to the file that it leads to. Your user needs permission to create files in that folder. ## If the connection is lost TotalEdit connects again by itself when it can. What you have not saved stays in its tab, and comes back if you close the window. If a file cannot be saved, save it again. If it says **Connect to … again to go on**, it needs the password that you did not keep: open the server from the list, and your tabs stay as they are. If someone changed the file meanwhile, TotalEdit asks before it replaces their version, as [on your computer](/totaledit/latest/guides/save-files/#when-another-app-changes-a-file). --- title: Keyboard shortcuts project: TotalEdit version: Latest section: reference language: en license: url: https://totaljs.es/docs/totaledit/latest/reference/shortcuts/ updated: 2026-12-02T15:40:06.047Z --- # Keyboard shortcuts > All the keys of TotalEdit. If your keyboard needs Shift or ⌥ to write a sign such as `\`, `=` or `/`, press it too: ⌘/ is ⇧⌘7 on a Spanish or a German keyboard. The list of commands has nearly all of them by name. ## Files and tabs | Action | Mac | Windows and Linux | | --- | --- | --- | | New file | ⌘N | Ctrl+N | | Open files | ⌘O | Ctrl+O | | Open a folder | ⇧⌘O | Ctrl+Shift+O | | Save | ⌘S | Ctrl+S | | Save as | ⇧⌘S | Ctrl+Shift+S | | Save all | ⌥⌘S | Ctrl+Alt+S | | Close the tab | ⌘W | Ctrl+W | | Close the window | ⇧⌘W | With its own button | | Open the tab closed last | ⇧⌘T | Ctrl+Shift+T | | Next tab | ⌥⌘→ or ⌃Tab | Ctrl+Alt+→ or Ctrl+Tab | | Previous tab | ⌥⌘← or ⌃⇧Tab | Ctrl+Alt+← or Ctrl+Shift+Tab | | Move the tab, with the keyboard on the tab itself | ⇧⌘← ⇧⌘→ | Ctrl+Shift+← Ctrl+Shift+→ | ## Go to | Action | Mac | Windows and Linux | | --- | --- | --- | | Every command | ⇧⌘P | Ctrl+Shift+P | | Go to a file | ⌘P | Ctrl+P | | Go to a symbol of the file | ⌘R | Ctrl+R | | Go to a line | ⌃G | Ctrl+G | | Go to the definition | F12 | F12 | | Find the references | ⇧F12 | Shift+F12 | | Go to the other bracket | ⇧⌘\ | Ctrl+Shift+\ | ## Find | Action | Mac | Windows and Linux | | --- | --- | --- | | Find and replace in the file | ⌘F | Ctrl+F | | Next match | ⌘G or F3 | F3 | | Previous match | ⇧⌘G or ⇧F3 | Shift+F3 | | Find in the project | ⇧⌘F | Ctrl+Shift+F | ## Cursors and selection | Action | Mac | Windows and Linux | | --- | --- | --- | | Add the next match | ⌘D | Ctrl+D | | Select every match of the selection | ⌃⌘G | Alt+F3 | | Add a cursor above or below | ⌥⌘↑ ⌥⌘↓ | Ctrl+Alt+↑ Ctrl+Alt+↓ | | Split the selection into lines | ⇧⌘L | Ctrl+Shift+L | | Select the line | ⌃L | Alt+L | | Select the block around | ⌘I | Ctrl+I | | Take back the last selection | ⌘U | Ctrl+U | | Select all | ⌘A | Ctrl+A | | Back to one cursor | Esc | Esc | ## Edit | Action | Mac | Windows and Linux | | --- | --- | --- | | Undo | ⌘Z | Ctrl+Z | | Redo | ⇧⌘Z | Ctrl+Y | | Comment or uncomment the lines | ⌘/ | Ctrl+/ | | Comment or uncomment a block | ⌃⇧A | Shift+Alt+A | | Move the line up or down | ⌥↑ ⌥↓ | Alt+↑ Alt+↓ | | Copy the line below | ⇧⌘D | Ctrl+Shift+D | | Delete the line | ⇧⌘K | Ctrl+Shift+K | | New line below | ⌘↩ | Ctrl+Enter | | More or less indentation | Tab ⇧Tab | Tab Shift+Tab | | Fold or unfold the block | ⌥⌘[ ⌥⌘] | Ctrl+Shift+[ Ctrl+Shift+] | | Show the completions | ⌃Space | Ctrl+Space | | Rename the symbol | F2 | F2 | | Format the file | From the list of commands | Shift+Alt+F | | Insert or change a Total.js icon | F6 | F6 | ## The window | Action | Mac | Windows and Linux | | --- | --- | --- | | Show or hide the sidebar | ⌘B | Ctrl+B | | Two sides, or one | ⌘\ | Ctrl+\ | | Go to the left or the right side | ⌘1 ⌘2 | Ctrl+1 Ctrl+2 | | Show or hide the terminal | ⌃ and the backtick key | Ctrl and the backtick key | | New terminal | ⌃⇧ and the backtick key | Ctrl+Shift and the backtick key | | Wrap long lines | ⌥⌘W | Ctrl+Alt+W | | Bigger or smaller text | ⌘= or ⌘+, ⌘- | Ctrl+= or Ctrl++, Ctrl+- | | Text at its usual size | ⌘0 | Ctrl+0 | | Settings | ⌘, | Ctrl+, | ## With the pointer | Action | Mac | Windows and Linux | | --- | --- | --- | | Add a cursor | ⌘ and a click | Ctrl and a click | | Select a column | ⌥ and drag | Alt and drag | | New file | Two clicks on the empty part of the tabs | Two clicks on the empty part of the tabs | | Close a tab | The middle button | The middle button | --- title: Settings project: TotalEdit version: Latest section: reference language: en license: url: https://totaljs.es/docs/totaledit/latest/reference/settings/ updated: 2026-12-02T15:40:06.047Z --- # Settings > Open the settings with ⌘, on the Mac, Ctrl+, on Windows and Linux, or with the last button at the top. Each change works at once, in all the files. ## What you can change | Setting | Choices | At the start | | --- | --- | --- | | **Theme** | **Same as the system**, **Light**, **Dark**, **High contrast light**, **High contrast dark** | Same as the system | | **Size of the text** | From 10 to 24 px | 14 px | | **Indent new files with** | **Spaces** or **Tabs** | Spaces | | **A level of indentation is** | 2, 4 or 8 columns | 4 columns | | **Wrap long lines** | On or off | Off | | **Show line numbers** | On or off | On | | **Mark spaces at the end of lines** | On or off | Off | | **Help for Total.js 5 and jComponent 20** | **In projects that use Total.js 5**, **Always**, **Never** | In projects that use Total.js 5 | ## Good to know - The size of the text also changes with ⌘= and ⌘- on the Mac, Ctrl+= and Ctrl+- on Windows and Linux, from 9 to 32 px. The terminal follows it. - The indentation is for new files, and for those that have nothing indented. [The others keep their own](/totaledit/latest/guides/file-format/#indentation). - Hiding the line numbers also hides the arrows that [fold blocks](/totaledit/latest/guides/lines-and-blocks/#fold-blocks). - The list of commands has the theme, the line numbers, the wrapping and the marks of spaces too. - There, **Turn on the help of Total.js 5 and jComponent 20** sets it to **Always**, not only in Total.js projects. The sidebar, its **Files** or **Find**, and the height of the terminal are not in the settings: TotalEdit remembers how you left them. --- title: Language servers project: TotalEdit version: Latest section: reference language: en license: url: https://totaljs.es/docs/totaledit/latest/reference/language-servers/ updated: 2026-12-02T15:40:06.047Z --- # Language servers > The language servers that TotalEdit looks for on your computer. Install the one of your language from its own page, and [the language help](/totaledit/latest/guides/language-help/) uses it. ## The programs that it looks for Where there are several, TotalEdit uses the first one that it finds, in this order. | Language | Program | | --- | --- | | JavaScript and TypeScript | `typescript-language-server` | | Rust | `rust-analyzer` | | Python | `pyright-langserver`, `basedpyright-langserver`, `pylsp` | | Go | `gopls` | | C and C++ | `clangd` | | HTML | `vscode-html-language-server` | | CSS, SCSS and Less | `vscode-css-language-server` | | JSON | `vscode-json-language-server` | | PHP | `intelephense`, `phpactor` | | YAML | `yaml-language-server` | | Shell | `bash-language-server` | | Lua | `lua-language-server` | | Ruby | `ruby-lsp`, `solargraph` | | Swift | `sourcekit-lsp` | | Java | `jdtls` | | Kotlin | `kotlin-language-server` | | C# | `csharp-ls` | | TOML | `taplo` | | Markdown | `marksman` | SQL, XML and Dockerfile have no server in TotalEdit. Svelte and Vue files have colours, and no server either. ## Where it looks for them On macOS and Linux, in the `PATH` of your shell, as your terminal has it, also when a version manager of Node.js sets it. On Windows, in the `PATH` of the system and of your user. It also looks in these folders of your home: `.cargo/bin`, `.local/bin`, `go/bin`, `.bun/bin`, `.npm-global/bin` and `.volta/bin`. TotalEdit runs only these programs, and you cannot add another one. ## When they run A server starts with the first file of its language that you open, in the folder of the project. It ends when you open another folder or close TotalEdit. --- title: Problems and answers project: TotalEdit version: Latest section: faq language: en license: url: https://totaljs.es/docs/totaledit/latest/faq/problems/ updated: 2026-12-02T15:40:06.047Z --- # Problems and answers > What to do when TotalEdit does not do what you expected, where it keeps your data, and what it connects to. ## A file does not open - **"This file is not text"**: it is a picture, a program or another kind of file. - **"This file is larger than 64 MB: open it with a tool for large files"**: TotalEdit does not open it. - **"The system does not let the app read or write it"**: check the permissions of the file. On the Mac, also check whether TotalEdit may use that folder, in the privacy settings of the system. ## A file cannot be saved - **"The system does not let the app read or write it"**: TotalEdit also needs to create files in that folder. Use **Save as…** to keep your text in another place. - **"… cannot be written in Latin-1: save it as UTF-8"**: press **Latin-1** at the bottom, choose **UTF-8** and save again. ## I do not find a file with ⌘P or Ctrl+P It is in `node_modules`, or a `.gitignore` leaves it out. Open it from the tree. ## Finding in the project misses a text - Save the files first: it looks in what is on the disk. - It leaves out `node_modules` and what `.gitignore` leaves out. - It looks for your text in UTF-8. In a Latin-1 file it finds what has no accents: to find a word that has them, write a part without them. ## There is no LSP at the bottom No language server helps with that file. [Get help from your language](/totaledit/latest/guides/language-help/#turn-it-on) has the steps. Check that: - the program is in [the list](/totaledit/latest/reference/language-servers/), and runs from your terminal; - a folder of your computer is open, and not only the file; - you chose **Start the language servers again** after you installed it. ## A shortcut does nothing Look at [the list of shortcuts](/totaledit/latest/reference/shortcuts/): some only work in the code. Or find the command by its name with ⇧⌘P on the Mac, Ctrl+Shift+P on Windows and Linux. In the terminal, Ctrl and a letter go to the shell. ## A server does not connect | Message | What to do | | --- | --- | | **The SSH server … cannot be reached** | Check the address, the port and your connection | | **The SSH agent is not running** | Start the agent, or choose a key file. On Windows, it is the service **OpenSSH Authentication Agent** | | **The SSH server accepted none of the keys of the agent** | Add your key to the agent with `ssh-add`, or choose a key file | | **The private key needs its passphrase, or it cannot be read** | Write the passphrase | | **That file is not a private key: check that it is not the one that ends in .pub** | Choose the file with the same name without `.pub` | | **The SSH server did not accept the sign-in of …** | Check the user, and its password or its key | | **The server could not open the SFTP subsystem** | The server does not offer SFTP. Ask who looks after it | ## The icons could not be loaded The Total.js icons come from `cdn.componentator.com` the first time. Check your connection and open the list again. ## Where my data is The settings, the tabs, the text not saved and the servers are in a file, `app.db`. The text in it is not encrypted. Passwords are not there: they are in the Keychain on macOS, the Credential Manager on Windows and the Secret Service on Linux. | System | Folder | | --- | --- | | macOS | `~/Library/Application Support/es.totaljs.apps.totaledit` | | Windows | `%APPDATA%\es.totaljs.apps.totaledit` | | Linux | `~/.local/share/es.totaljs.apps.totaledit` | ## What TotalEdit connects to To the servers whose folders you open, and to the Total.js CDN for its icons. It sends nothing about you or your files to us. The language servers and the terminal are programs of your computer, and what they connect to depends on them. [Privacy](/totaldesktop/latest/guides/privacy/) has the details. ## Something else [Report the problem](https://github.com/totaljs-es/totaljs-desktop/issues/new?template=problem.yml) with the version of TotalEdit and your system.