Overview Version History Q & A Rating & Review
Ghost Typer 👻
Ghost Typer brings your deleted code back to life with a cinematic touch. Instead of a standard "Undo," this extension re-inserts your last deleted block of code character-by-character, mimicking the flow of a human programmer.
Perfect for coding demonstrations, tutorials, or simply enjoying the satisfying flow of code reappearing before your eyes.
✨ Features
Intelligent Deletion Tracking : Automatically remembers the last block of code you deleted (via Backspace, Delete, or Cut).
Human-Like Typing : Restores code line-by-line, character-by-character.
Customizable Speed : Adjust the typing speed to match your preference (from lightning-fast to methodical).
Clean Undo History : Even though it types character-by-character, it treats the entire restoration as a single action in your undo history.
Selection Aware : Specifically designed to capture large blocks of selected code that were removed.
🚀 How to Use
Select a block of code (e.g., 10 lines or 100 lines).
Delete it (using Backspace, Delete, or Ctrl+X).
Trigger the Ghost : Press Alt + Z (Windows/Linux) or Option + Z (Mac).
Watch as your code is "re-typed" into the editor automatically.
⚙️ Configuration
You can fine-tune the "typing" experience in your VS Code settings:
Setting
Default
Description
ghostType.typingSpeed
50
The delay (in milliseconds) between each character. Lower is faster.
To change the speed:
Open Settings (Ctrl + ,).
Search for Ghost Typer.
Change the Typing Speed value.
⌨️ Keyboard Shortcuts
Command
Keybinding
Restore Last Deletion
Alt + Z
Note: You can rebind this shortcut by searching for ghost-type.restore in the Keyboard Shortcuts editor.
🛠 Installation
Open Visual Studio Code .
Go to the Extensions view (Ctrl+Shift+X).
Search for Ghost Typer.
Click Install .
📝 Requirements
Visual Studio Code v1.75.0 or higher.
📄 License
This extension is licensed under the MIT License .
🙌 Contributing & Support
Found a bug or have a feature request? Please open an issue on our GitHub Repository .
Enjoying Marker Pen? Consider leaving a ⭐ on the Marketplace!
Connect with me
=====================
Happy Coding