Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>file-aliasNew to Visual Studio Code? Get it now.
file-alias

file-alias

sumneko

|
276 installs
| (2) | Free
Add a display name to the file
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

File Alias

avatar

Display alias (or anything else) to the right of the file name

Usage

file-alias.listFile

Specify a list file (must be a valid json file), the key of json is the relative path of the file, and the value is the displayed alias.

The preview image above uses the following settings:

"file-alias.listFile": "listfile.json"

listfile.json

{
    "24C8245F82CFCD04": "[Haru Urara]",
    "31EDAED9542FB1B1": "[Seiun Sky]",
    "769A76808677D175": "[Nishino Flower]",
    "4621C279794DBDFE": "[Mayano Top Gun]",
    "6867B34B31B2DD12": "[Rice Shower]"
}

file-alias.contentMatch

Match a piece of content from the file content as an alias

"file-alias.contentMatch": "// filename: (\\w+)"

file-alias.contentMatchFormat

Format the matched content

avatar

avatar

"file-alias.contentMatch": "Compile (\\w+)"

"file-alias.contentMatchFormat": "<{1}>"

Note

VSCode's public API cannot achieve this feature, so this extension did some hacks

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