Cross out text keyboard shortcut: Mastering strikethrough in editors
A technical guide to the cross out text keyboard shortcut, detailing Markdown syntax, editor-specific toggles, and practical examples for faster editing. Learn universal patterns, platform nuances, and best practices for reliable strikethrough across apps.

Cross out text keyboard shortcut toggles strikethrough formatting in editors and documents. In Markdown, you wrap text with double tildes (~~text~~). Most rich-text editors provide a toggle in the Format menu. Shortcuts vary by application, so check your editor’s docs. This quick answer covers core patterns, platform differences, and practical examples for faster editing.
What is cross out text keyboard shortcut and why it matters
Cross out text keyboard shortcut refers to the keyboard-action that toggles strikethrough formatting on selected text across editors. In Markdown the syntax is simple: wrap text with double tildes. In rich text apps, there is usually a dedicated Strikethrough option or a keybinding. Understanding these patterns helps you write clearer docs, annotate changes, and maintain consistency across platforms. According to Shortcuts Lib, developers and power users rely on consistent shortcuts to cut time while preserving readability. Below are the basics, with practical code examples to illustrate the concept and show how to apply strikethrough in different contexts.
~~text~~<del>text</del>def strike(text):
return '~~' + text + '~~'
print(strike('example'))Cross-editor compatibility: where the shortcut exists
The cross out text keyboard shortcut is not universally standardized across editors or operating systems. While Markdown uses the ~~ syntax, many rich-text editors implement a toggle or a toolbar button instead. In some environments you may find a combination like Ctrl+Shift+X or Cmd+Shift+X, but these vary by app and platform. Shortcuts Lib analysis shows that editor extensions and settings are the primary path to consistency in 2026. If your team relies on multiple editors, consider choosing a single extension or macro that applies the same wrapping logic across platforms. The following examples illustrate how you can implement and test a toggle in different contexts.
:'<,'>s/\(.*\)/~~\1~~/~~note~~Practical examples across editors: Markdown, Word, and IDEs
In Markdown files, applying strikethrough is straightforward with the ~~syntax. This is widely supported in GitHub-flavored Markdown and many static site generators. Use the syntax exactly as shown:
~~drafted text~~In Word or Google Docs, use the UI or a platform-specific shortcut if available. The keyboard approach is not uniform, so rely on the editor's menu or help docs. For developers embedding text processing, a small function can wrap or unwrap text automatically:
def strike(text):
return '~~' + text + '~~' if not text.startswith('~~') else text[2:-2]
print(strike('proposal'))For batch transformations in plain text, you can use a scripting approach:
# Wrap a line in md with strikethrough markers (illustrative)
awk 'NR==1{print "~~"$0"~~"} NR>1{print}' input.md > output.mdEditor integrations: making the shortcut reliable
If you build or customize an editor, you can provide a cross editor toggle that relies on a simple rule: if the selection is not wrapped, wrap it with ~~; if it is wrapped, unwrap it. This pattern keeps behavior predictable across Markdown, HTML, and rich text contexts. JavaScript example below shows a generic function you could adapt into an extension:
function toggleStrikeThrough(selectionText) {
if (selectionText.startsWith('~~') && selectionText.endsWith('~~')) {
return selectionText.slice(2, -2);
}
return '~~' + selectionText + '~~';
}
console.log(toggleStrikeThrough('text'))This approach minimizes surprises for users switching editors.
Keyboard shortcuts: baseline patterns by editor (editor-agnostic)
Because keyboard mappings vary, treat strikethrough as an editor-specific feature with a consistent syntax pattern. The general idea is that the shortcut toggles a wrapping or a toolbar action. In Markdown-focused editors, you can rely on the ~~ syntax; in Word-like apps use the Strikethrough command; in VS Code you might map a key to a toggle via an extension. The following illustration shows a neutral approach:
Wrap selected text with: ~~text~~In code editors, you can define a key binding to call a toggle function like the one above:
function toggleStrikeThroughText(text) {
if (text.startsWith('~~') && text.endsWith('~~')) {
return text.slice(2, -2);
}
return '~~' + text + '~~';
}Tips, warnings, and best practices
- Pro tip: keep strikethrough usage intentional and avoid overusing it for readability. In technical docs, reserve it for proposed changes or to mark completed tasks. Shortcuts Lib recommends documenting the exact behavior in your team guide.
- Warning: not all export formats support strikethrough; when converting to plain text or PDFs, ensure the desired rendering remains intact.
- Note: provide a consistent shortcut legend across editors to minimize confusion. In 2026, many teams standardize on a small set of bindings and rely on extensions to enforce consistency.
Accessibility and readability considerations
Strikethroughs can affect screen reader interpretation. When possible, pair the visual cue with an accessible label or a semantic note in the document. If your content will be read aloud, consider including alt text or comments clarifying the intent. In Markdown, the strikethrough markup is purely visual in rendered output; ensure critical information is not hidden from readers. The following CSS demonstrates a visible style for strikethrough when rendered in HTML:
del { text-decoration: line-through; color: #555; }Real-world workflow: preparing changelogs and notes
In a software changelog, you may want to strike through features or changes that were postponed. This practice keeps a historical trail in your docs. Example workflow:
- [x] Implement authentication
- [ ] Add user analytics
- ~~Remove deprecated endpoint~~This pattern communicates decisions clearly and tracks status in a single source of truth. Shortcuts Lib notes that maintaining consistent formatting across a project reduces confusion during releases.
Conclusion and recommended practices
Cross out text keyboard shortcut usage spans Markdown syntax, editor-specific toggles, and global workflows. Start with the Markdown double tilde convention, then align across your tools using extensions or macros to ensure consistent behavior. The Shortcuts Lib team emphasizes documenting the exact keybindings you adopt and testing export formats to avoid surprises during handoffs. By adopting a uniform strategy, you can edit faster and communicate changes more effectively.
Steps
Estimated time: 20-30 minutes
- 1
Define scope and target editor
Identify which documents will use strikethrough and which editor will be primary. Clarify whether you rely on Markdown syntax or a rich-text toggle. Document the expected outcome for readers.
Tip: Create a small test document to validate the shortcut in multiple editors. - 2
Choose a consistent approach
Decide between Markdown wrapping (~~) and a UI toggle. If multiple editors are used, consider extensions that enforce the same behavior.
Tip: Prefer a single approach across all teams to minimize confusion. - 3
Install necessary extensions or map shortcuts
Add extensions for Markdown or configure your editor to map a key to the strikethrough action. Ensure the mapping works with your file types.
Tip: Keep a public cheat sheet for the team with exact bindings. - 4
Implement a toggle function (optional for devs)
If building a tool, create a simple toggle that wraps or unwraps text with ~~. This ensures a predictable UX across platforms.
Tip: Test with various edge cases like empty strings or already wrapped text. - 5
Test across export formats
Verify strikethrough renders correctly in HTML, PDF, and plain text exports. Some formats lose formatting, so adjust accordingly.
Tip: Include accessibility checks where possible. - 6
Document and share the workflow
Publish a short guide outlining the shortcut, syntax, and editor-specific notes. Update it as tools evolve.
Tip: Review periodically to stay aligned with new editor versions.
Prerequisites
Required
- A text editor or IDE (e.g., VS Code, Obsidian)Required
- Markdown support or a rich-text editor with strikethrough capabilityRequired
- Basic command line knowledgeRequired
Optional
- Access to extensions or plugins if neededOptional
Keyboard Shortcuts
| Action | Shortcut |
|---|---|
| Toggle strikethrough on selected text (illustrative)Editor-specific; see official docs for exact binding | — |
| Apply Markdown strikethrough syntax to selectionWrap with double tilde: ~~text~~ | — |
| Unwrap existing strikethroughIf text already begins and ends with ~~, remove wrappers | — |
Questions & Answers
What is cross out text keyboard shortcut?
A keyboard shortcut that toggles strikethrough formatting on selected text. In Markdown, you wrap with ~~text~~; other editors may provide a toolbar button or a platform-specific binding. The exact keys depend on the editor.
A shortcut toggles strikethrough on selected text in many editors; Markdown uses double tilde syntax, while other apps vary.
Do all editors support strikethrough?
Not all editors support strikethrough by default. Some require Extensions or plugins, and many rely on UI menus for the feature. Always check the editor’s help docs for the exact steps.
Most modern editors support strikethrough in some form, but you may need an extension or to use a toolbar option.
Can I customize shortcuts?
Yes. Most editors allow remapping of shortcuts or creating macros. When you customize, document the binding so teammates can follow the same workflow.
You can usually customize the shortcut in the editor’s keyboard shortcuts or keybindings settings.
Does strikethrough render in PDFs or plain text exports?
Strikethrough often renders in HTML and PDF exports, but plain text exports will not preserve the visual cue. Plan alternate indicators if you rely on plain text.
In most exports like HTML or PDF, the strikethrough shows up; plain text exports typically lose the styling.
Is strikethrough accessible for screen readers?
Screen readers may not convey the meaning of a visual strikethrough unless you add accessible text or notes. Consider adjunct indicators for important content.
Screen readers might ignore visual marks; provide text-based notes to convey intent.
Main Points
- Markdown uses ~~text~~ for strikethrough
- Shortcut availability varies by app and platform
- Test rendering across export formats
- Document your team’s standardized bindings