Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Dirty.swpNew to Visual Studio Code? Get it now.
Dirty.swp

Dirty.swp

Forsling

|
1,541 installs
| (1) | Free
.swp file detection & locking
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Dirty.swp for Visual Studio Code

.swp file locking and detection

Dirty.swp helps editing in shared environments by locking files you are edting by creating .swp files (like Vim). The extension also detects and warns you if anyone else is editing the files you open or are editing yourself. By default any dirty file will be locked but you have the ability to lock files until you close them.

Disclaimer

Use this extension at your own risk. I cannot guarantee that it will work flawlessly in all situations.

Limitations

Dirty.swp does not create valid Vim swap files but rather just simple file containing a unique machine id and an optional name (which can be set in settings and will show other Dirty.swp users who has locked a file).

Commands

Dirty.swp has four commands:

  • Start Start monitoring and dirty file locking
  • Pause Stop monitoring and dirty file locking (will also release all current locks)
  • Lock file until close Lock the current file until close (instead of only while dirty)
  • List locked files Opens a menu that lists all .swp locked files that the extension knows about and shows their status

Whether Dirty.swp starts active or paused can be toggled in the settings.

Status bar

By default Dirty.swp comes with a status bar item (label: .swp) in the bottom left that opens the Dirty.swp menu (List locked files command). The status bar item can be disabled in settings.

Repository

Dirty.swp on Github

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft