Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>File Extension AliasesNew to Visual Studio Code? Get it now.
File Extension Aliases

File Extension Aliases

HeDeAn

|
293 installs
| (0) | Free
Use custom aliases for your file extensions
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

File Extension Aliases

Features

This extension lets you specify aliases for your file extensions and default contents for that file. When creating a new file, it will then change the alias to the real file extension and write the default contents to it.

Extension Settings

This extension contributes the following settings:

  • file-extension-aliases.replacementPairs: An array of replacementPair objects. The object has two values:
    - replaceable, for the extension that acts as the alias (for .html, you could use .h)
    - replacement, which replaces the alias.
    - content, for the default contents of the file. (use \, \n, and \t for special characters, newlines, and tabs).

Release Notes

In most cases this extension won't be very useful because most file extensions are already only one or two characters long, but there are a few languages that use ~ten characters, and for those it will be a great productivity boost.

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