Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Auto Rename FileNew to Visual Studio Code? Get it now.
Auto Rename File

Auto Rename File

jojoshua

|
2,148 installs
| (0) | Free
Automatically renames a file based on what it ends with
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Features

  • Automatically renames a file for you based on what it ends with
  • Optionally inserts some text into that file

Why would I ever use this?

This extension is intended to boost productivity when you have to type longish file extensions.

My primary use case was using this to reduce time and misspelling in creating .svelte files for SVELTE

Extension Configuration

Add entry into your VSCode settings.json file and configure like the example below

  "autoRenameFile": {
    "config": [
      {
        "from": ".sv",
        "to": ".svelte"
      },
      {
        "from": ".svt",
        "to": ".svelte",
         "insertText": "<script lang='ts'>\n\n</script>"
      }
    ]
  }

Donation

If this software helped you, donate a cup of coffee :)

Donate

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