---
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 |
