This extension provides a git mv operation using a native file save dialog.
When a file is moved, any editors referring to the original path are reopened with the new file path.
VSCode’s built-in Git: Rename command performs a git mv under the hood and automatically updates open editors. However, it does not support directory name completion, nor does it allow creating new folders, making it unsuitable for moving files across directories.
On the other hand, running git mv from a terminal allows for tab completion, reducing the risk of mistyped paths. But this leaves VSCode with editors pointing to deleted files, and still requires a manual mkdir if the destination folder doesn’t exist.
This extension solves both issues by allowing git mv operations through the file save dialog.
This provides:
As a result, it prevents mistakes like editing and saving an old buffer after a file rename.
git mvgit mvgit mv: with file save dialogIf you encounter any bugs or have any suggestions, please let us know by submitting an issue on our GitHub page.
git mv (CLI) |
Git: Rename (VSCode) |
git mv: with save dialog (this extension) |
|
|---|---|---|---|
| Updates open editors | ❌ | ✅ | ✅ |
| Create directories | ❌ | ❌ | ✅ |
| Move across folders | ✅1 | ⚠️2 | ✅ |