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

Shebang Language Associator

davidhewitt

|
760 installs
| (1) | 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

This extension only has one setting, which is the patterns to associate to given languages. For example:

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

Release Notes

See [CHANGELOG.md]

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2019 Microsoft