Skip to content

davidhewitt/shebang-language-associator

Repository files navigation

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

About

VSCode extension to set language type from shebang lines

Resources

License

Stars

Watchers

Forks

Packages

No packages published