Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>convert-to-msNew to Visual Studio Code? Get it now.
convert-to-ms

convert-to-ms

Genís Muner

| (0) | Free
Convert any time measure to milliseconds.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Convert to Milliseconds (convert-to-ms)

A simple Visual Studio Code extension that converts custom time units into milliseconds.

✨ Features

Type a token followed by = and it will be automatically converted into milliseconds:

  • sim= → seconds in ms (1sim = 1000)
  • mim= → minutes in ms (1mim = 60000)
  • him= → hours in ms (1him = 3600000)
  • dim= → days in ms (1dim = 86400000)
  • wim= → weeks in ms (1wim = 604800000)
  • moim= → months in ms (30-day reference: 1moim = 2592000000)
  • yim= → years in ms (1yim = 31536000000)

You can also prefix with a number:

  • 4mim= → 240000
  • 2him= → 7200000

⌨️ Usage

  1. Type a token like 5mim= in your editor.
  2. As soon as you type the =, the token is replaced with its millisecond equivalent.

    ⚡ No command palette or keyboard shortcut required.

📦 Installation

  • Download it from the Visual Studio Code Marketplace (once published).
  • Or install manually from a .vsix file:
code --install-extension convert-to-ms-0.0.1.vsix

🛠 Development

  1. Clone the repository.
  2. Install dependencies: npm install
  3. Build: npm run compile
  4. Open the folder in VS Code and press F5 to run the Extension Development Host for debugging.

📝 License

MIT License

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