Using EditBench
This page covers the main parts. Help → Online Help in the program lists every command.
Cut, copy and paste
| Where | Cut | Copy | Paste |
| Document | Ctrl+X, Shift+Delete | Ctrl+C, Ctrl+Insert | Ctrl+V, Shift+Insert, Ctrl+Shift+Insert |
| Find, dialogs, settings | Ctrl+X, Shift+Delete | Ctrl+C, Ctrl+Insert | Ctrl+V, Shift+Insert, Ctrl+Shift+Insert |
| Hex view | Ctrl+X, Shift+Delete (in Insert mode) | Ctrl+C, Ctrl+Insert | Ctrl+V, Shift+Insert |
| Terminal, SSH/Telnet console | | Ctrl+Shift+C, Ctrl+Insert | Ctrl+Shift+V, Ctrl+V, Shift+Insert, Ctrl+Shift+Insert |
Right-click in any of them for a menu. The Edit menu and the toolbar work on the document and the hex view.
In the terminal, drag to select, double-click for a word, triple-click for a line. Plain Ctrl+C goes to the program.
In the hex view, Copy gives hex bytes from the hex column and text from the text column (Tab changes column), and Paste takes the same.
After a copy from the document or the terminal the status bar says how many characters were copied; the hex view says how many bytes.
Editing
Several carets: Alt+click adds a caret. Typing goes to all of them.
Column mode (Column → Column Mode, Alt+C): drag out a rectangle, then type, paste or delete on every line of it. The Column menu can also insert a number sequence and add up a column of numbers.
Word wrap, folding and bookmarks are in the View and Search menus (Ctrl+Alt+W wraps, Ctrl+D sets a bookmark). Folding follows brackets or indentation.
Syntax colours follow the file extension: 29 languages, among them PowerShell (.ps1), batch files (.bat, .cmd), C#, Python, Rust, JavaScript, PHP, YAML and SQL. View → View As picks another language for the open file.
Split views: View → Split Horizontally or Split Vertically shows the same file in two panes.
Undo groups typing into words and lines. Unsaved work is kept in recovery files; after a crash EditBench offers to bring it back.
Files
EditBench reads and writes 149 encodings and keeps each file's line endings as they were. The status bar shows both.
Saving writes a new file first and then replaces the old one, so a failed save does not damage the original.
If another program changes a file you have open, EditBench asks before reloading or overwriting.
Closing the last tab leaves the window empty, with a New File button (Ctrl+N or a double-click also starts one). To get a blank document instead, choose Settings → Files → When the last tab closes → Open a blank document.
Hex editing: Edit → HEX Functions → Hex Edit shows the bytes of any file.
Very large files open in a viewer that reads from the disk. It shows bytes and is read-only. You can instead load a file of up to 2 GiB into memory to edit it.
Finding and replacing
Ctrl+F opens the Find bar; Ctrl+H adds Replace. Beside the box choose how the text is read:
| Choice | Meaning |
| Literal | Exactly the text typed |
| Caret | A simple pattern language where special codes start with ^ |
| Unix | Unix-style regular expressions |
| Perl | Perl-compatible regular expressions |
Search → Find In Files (Ctrl+Shift+F) and Replace In Files (Ctrl+Shift+R) work over a folder, with file name patterns. Results go in a list; double-click one to open it there.
Text tools
File → Compare Files (Alt+F11) shows two files side by side. The arrows copy a difference to the other side.
File → Sort and the paragraph and case commands in Format work on the selection or the whole file.
JSON and XML can be reformatted and browsed in a structure panel (View → Toolbars / Windows → JSON Manager or XML Manager).
A Markdown file can be shown rendered beside its text (
View → Live preview). The preview is not a web browser: it shows headings, lists, tables and code, without
CSS or images.
Projects, Git and the terminal
A project is a list of folders and files, shown in the File View panel. Project → New Project/Workspace starts one; Ctrl+T shows the File View.
The Git toolbar shows the branch and runs common commands. Its console refuses commands that throw work away (reset, checkout, clean, restore, rebase); use the Branch Manager or the terminal for those.
View → Toolbars / Windows → Terminal opens a shell in a panel. It shows colour and runs full-screen programs such as vim and htop. While it has the keyboard, every key goes to the shell, including Ctrl+S and Ctrl+W. Shift+PageUp scrolls back.
Remote files
File → FTP → Account Manager keeps accounts for FTP, FTPS (FTP over TLS) and SFTP servers. FTP Browser and Open from FTP in the same menu browse a server and open a file; saving sends it back. Passwords are kept with secret-tool if it is installed. Plain FTP is not encrypted. An SSH and Telnet console is under View → Toolbars / Windows.
<note>Opening and saving over FTP has been tried. SFTP and SSH have automated tests but have not yet been tried against a real server.</note>
Macros (Tools → Macro): record what you do and play it back, or write the macro as text.
Scripts (View → Toolbars / Windows → Script List): JavaScript files that can read and change the document.
Tools (Tools → Tool Configuration): run another program on the file or the selection and take its output.
Templates (Edit → Insert Template): pieces of text with places to fill in.
Settings
Edit → Settings has the appearance, tabs and indenting, file and backup options, search options and printing. The Keyboard Shortcuts button is on its Editing page.