Crimson Editor

Editor Commands

This page is a complete reference to Crimson Editor’s menu commands, with their keyboard shortcuts. Every menu has a quick-reference table; the powerful features get a few extra notes and tips below their tables.

Most commands are also available on the toolbar and in the right-click context menu, and you can reassign almost any keyboard shortcut from Tools → Preferences.

Command Line Parameters

You can tell Crimson Editor which files to open right from the command line — handy for shortcuts, batch files, or wiring it up as the editor for another tool.

  • Open one or more files — separate names with spaces: cedt.exe test.c test.h
  • Names with spaces — wrap them in quotes: cedt.exe "long file name.txt"
  • Wildcards — open everything that matches: cedt.exe *.c
  • Jump to a line — use the /L switch: cedt.exe /L:5 test.c opens the file with the caret on line 5.

File Menu

Creating, opening, saving, printing, and working with files — locally or over FTP.

CommandShortcutWhat it does
NewCtrl+NStart a new, empty document.
Open…Ctrl+OOpen one or more existing files. You can also drag files from Explorer and drop them in.
Open Template…Alt+Shift+OStart from one of your document templates (see the tip below).
CloseCtrl+F4Close the active document, offering to save first.
Close AllClose every open document.
ReloadRe-read the active file from disk, discarding unsaved changes.
Reload As…Re-read the file using a chosen encoding.
SaveCtrl+SSave the active document. First save prompts for a name.
Save As…Alt+Shift+SSave a copy under a new name.
Save AllSave every modified document at once.
Print…Ctrl+PPrint, with options for printer, range, and syntax-colored output.
Print PreviewSee exactly how the printed pages will look.
Print Setup…Choose the printer and page options.
FTP → Open Remote…Ctrl+Shift+OBrowse and open a file directly on an FTP server.
FTP → Save As Remote…Ctrl+Shift+SUpload the current document to an FTP server.
FTP → FTP Settings…Manage your saved FTP accounts.
Recent Files → …Reopen a file you closed recently.
ExitAlt+F4Quit, prompting to save any unsaved work.

Templates live in the template sub-folder of the install directory. Drop any plain-text file there — a license header, an HTML skeleton, a script boilerplate — and it shows up under Open Template.

Editing remote files feels just like editing local ones: open a file over FTP, edit, and Save writes your changes straight back to the server.

Edit Menu

The everyday editing commands, plus some power tools under Advanced.

CommandShortcutWhat it does
UndoCtrl+ZStep backward through your edits — unlimited, all the way to when the file was opened.
RedoCtrl+YRe-apply an undone edit.
Cut / Copy / PasteCtrl+X / Ctrl+C / Ctrl+VThe usual clipboard commands.
DeleteDelRemove the selection.
Append → Cut AppendCtrl+Shift+XCut and add to the clipboard instead of replacing it.
Append → Copy AppendCtrl+Shift+CCopy and add to the clipboard.
Select → Select AllCtrl+ASelect the whole document.
Select → Select LineCtrl+ESelect the current line.
Select → Select WordCtrl+DSelect the word under the caret.
Select → Select BlockCtrl+BSelect the block enclosed by the nearest brackets.
Change Case → Upper / LowerCtrl+U / Ctrl+LUppercase or lowercase the selection.
Change Case → CapitalizeCtrl+Shift+UCapitalize Each Word.
Change Case → Invert CaseCtrl+Shift+LSwap the case of every letter.
Insert → Insert Date / TimeAlt+Shift+D / Alt+Shift+TDrop in the current date or time.
Insert → Insert File…Alt+Shift+FPaste the contents of another file at the caret.
Advanced → Increase / Decrease IndentCtrl+. / Ctrl+,Indent or outdent the line or selected block.
Advanced → Delete LineAlt+DelDelete the whole current line.
Advanced → Duplicate LineAlt+InsCopy the current line just below itself.
Advanced → Delete WordCtrl+DelDelete from the caret to the end of the word.
Advanced → Delete Prev WordCtrl+BackspaceDelete the word before the caret.
Advanced → Delete to End of LineCtrl+Shift+DelDelete from the caret to the line’s end.
Advanced → Delete to Begin of LineCtrl+Shift+BackspaceDelete from the caret to the line’s start.
Advanced → Join LinesAlt+JMerge this line and the next into one.
Advanced → Split LineAlt+KBreak the line at the caret.
Advanced → Make / Release CommentCtrl+M / Ctrl+Shift+MAdd or remove the line-comment marker for the current language.
Column ModeAlt+CToggle rectangular (column) selection — see the tip.

Column mode lets you select and edit a rectangular block instead of whole lines. Turn it on with Alt+C, drag a tall, narrow selection, and your typing, cut, copy, and paste all apply to that column — perfect for aligning code or editing tabular data.

Make Comment uses the comment marker defined by the document’s syntax type, so the same shortcut comments out C++, Python, or HTML correctly.

Search Menu

Find, replace, navigate, and drop bookmarks.

CommandShortcutWhat it does
Find…Ctrl+FSearch the current document, with optional regular expressions.
Replace…Ctrl+RFind and replace, one match at a time or all at once.
Find Next / PrevF3 / Shift+F3Repeat the search forward or backward.
Find in Files…Ctrl+Shift+FSearch across a whole folder tree and list every match.
Go To…Ctrl+GJump straight to a line number.
Toggle BookmarkCtrl+F2Set or clear a bookmark on the current line.
Next / Prev BookmarkF2 / Shift+F2Jump between your bookmarks.
Advanced → Prev Editing PositionCtrl+\Jump back to where you were last editing.
Advanced → Pairs Begin / End PositionCtrl+[ / Ctrl+]Jump to the matching opening or closing bracket.

Find in Files is great for codebases: give it a folder, a file filter (e.g. *.c;*.h), and a search term, and it collects every hit into the Output Window — double-click a result to jump there.

View Menu

Control what’s on screen — panels, fonts, spacing, colors, and whitespace.

CommandShortcutWhat it does
Toolbars/Views → Toolbar / MDI File Tabs / Status BarShow or hide each interface element.
Toolbars/Views → Directory WindowAlt+Shift+1The file-tree panel.
Toolbars/Views → Remote WindowAlt+Shift+2The FTP browser panel.
Toolbars/Views → Project WindowAlt+Shift+3The project workspace panel.
Toolbars/Views → Output WindowAlt+Shift+0Output from user tools and Find in Files.
Word WrapAlt+Shift+WWrap long lines to the window width (without breaking syntax coloring).
Spell CheckAlt+Shift+KUnderline misspelled words with a red zigzag.
Line NumbersAlt+Shift+LShow or hide line numbers in the margin.
Column Markers…Draw vertical guide lines at chosen columns.
Screen Fonts / Printer FontsSwitch between your registered fonts, or set new ones.
Line SpacingChoose 100–200% line spacing, or a custom value.
Tab SizeSet the tab width (2, 4, 8, 16, or custom).
Color SchemesApply a built-in scheme (Default, Simplified, Reversed, Light Gray, Dark Blue), load a saved one, or fine-tune colors with Set Colors.
Others → Embolden Keywords / Italicize CommentAlt+Shift+B / Alt+Shift+IStyle keywords bold and comments italic.
Others → Show Spaces / Tab Characters / Line BreakCtrl+Shift+E / Ctrl+Shift+T / Ctrl+Shift+BReveal individual whitespace characters.
Others → Show All White SpacesCtrl+Shift+WReveal every whitespace character at once.

You can register up to five custom screen fonts and switch between them instantly — useful for jumping between a coding font and a larger presentation font.

Document Menu

Settings that belong to the file itself — its language, encoding, and line endings.

CommandWhat it does
Syntax Type → Auto Detect / Plain Text / Customize…Pick the highlighting language, or let Crimson Editor detect it from the extension.
Properties…Show details about the current file.
Reload DocumentRe-read the file from disk.
Lock DocumentMake the document read-only to prevent accidental edits.
Encoding Type → ASCII / Unicode (LE) / Unicode (BE) / UTF-8 (with BOM) / UTF-8 (w/o BOM)Read and save the file in the chosen text encoding.
File Format → DOS (CR/LF) / Unix (LF) / Mac (CR)Set the line-ending style.
Tabs & Spaces → Convert Tabs↔Spaces / Leading Spaces to Tabs / Remove Trailing SpacesClean up indentation and trailing whitespace.
Summary…Show document statistics.

Crimson Editor opens and saves UTF-8 and Unicode files — set or change the encoding here, and use File Format to keep Unix (LF) line endings when you work with cross-platform projects.

Project Menu

Group related files and folders into a workspace you can reopen anytime. The project tree appears in the Project Window (Alt+Shift+3).

CommandWhat it does
New Project…Create a new project workspace.
Open Project…Open an existing project.
Close ProjectClose the current project.
New Category…Add a category (folder) to organize files within the project.
Add to Project…Add chosen files to the project.
Add Active FileAdd the file you’re currently editing.
Add All Open FilesAdd every open document at once.

Tools Menu

Run external programs, evaluate expressions, and launch your own custom tools.

CommandShortcutWhat it does
Preferences…Open the settings dialog. See the Preferences page.
Evaluate LineCtrl+EnterCalculate the math expression on the current line. See the Calculator page.
MS-DOS ShellF10Open a command prompt in the file’s folder.
View in BrowserAlt+BOpen the current document in your default web browser.
Conf. User Tools…Define your own tools (compilers, formatters, scripts).
User Tools 1–0Ctrl+1Ctrl+0Run one of your ten configured user tools.

User tools turn Crimson Editor into a lightweight IDE: wire up a compiler or script with arguments like $(FileName) and $(FileDir), assign it a Ctrl+ number key, and capture its output in the Output Window. The How-Tos page has ready-made examples for C/C++, Java, Perl, and LaTeX.

Macros Menu

Record a sequence of keystrokes once, then replay it with a single key.

CommandShortcutWhat it does
Begin Recording…Start capturing your keystrokes.
End RecordingStop capturing.
Replay MacroAlt+EnterPlay back the most recent recording.
Conf. User Macros…Name, reorder, and manage saved macros.
User Macros 1–0Alt+1Alt+0Replay one of your ten saved macros.

Macros are perfect for repetitive edits — record yourself reformatting one line, then replay it down a whole file.

Window Menu

Arrange and move between open documents.

CommandShortcutWhat it does
New WindowOpen a second view of the active document.
SplitSplit the current window to see two parts of one file.
CloseCtrl+WClose the active window.
Last VisitedCtrl+TabJump back to the document you were just in.
Next / Prev WindowCtrl+F6 / Ctrl+F5Cycle through open documents.
Cascade / Tile Horizontal / Tile VerticalArrange the document windows.

Help Menu

CommandWhat it does
Help Topics…Open the help contents.
Visit Homepage…Open https://www.crimsoneditor.com/.
Sponsoring…Learn how to support Crimson Editor’s development.
About Crimson Editor…Show the version number and copyright.