UnSe is a Visual Studio Code extension that brings scoped undo functionality — changes are undone only within the currently selected text, offering a safer and more precise editing workflow.
No more accidentally undoing unrelated code!
✔️ Undo changes strictly within the selected region
✔️ Automatically tracks edits when your selection changes
✔️ Leaves the rest of your document untouched
✔️ Trigger via Command Palette or Ctrl + Alt + Z (default)
-
Select any portion of text in your editor
-
Edit anything within the selected range
-
Undo only those edits using:
- Command Palette →
Undo in Selection - or shortcut:
Ctrl + Alt + Z
- Command Palette →
git clone https://github.com/Eternalynx04/UnSe.git
cd UnSe
npm install
npm run compileThen open VS Code in this directory and press F5.
Run in watch mode for live rebuilds:
npm run watch| Command | Action | Shortcut |
|---|---|---|
unse.undo |
Undo the most recent change in selection | Ctrl + Alt + Z |
Licensed under the MIT License.