Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Shebang Language AssociatorNew to Visual Studio Code? Get it now.
Shebang Language Associator

Shebang Language Associator

davidhewitt

|
2,807 installs
| (3) | Free
A tiny extension to associate shebang lines with languages
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

shebang-language-associator README

Have linux scripts without file extensions and atypical shebang lines which mean VSCode cannot detect your script's language correctly? Maybe Shebang Language Associator can help.

Features

Sets the VSCode lanaguage for a given file based on regex patterns for shebang lines. Just that.

Extension Settings

shebang.assocations

The patterns to associate to given languages. For example:

"shebang.associations": [
    {
        "pattern": "^#!/bin/bash$",
        "language": "shellscript"
    }
]

shebang.associateOnSave

Whether to re-check shebang lines on file save (new in 1.3.0).

"shebang.associations": true

Release Notes

See CHANGELOG.md

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