Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for template filename extensions (.j2, .erb, etc) #5

Open
YAMLcase opened this issue Nov 23, 2019 · 1 comment
Open

support for template filename extensions (.j2, .erb, etc) #5

YAMLcase opened this issue Nov 23, 2019 · 1 comment

Comments

@YAMLcase
Copy link

syntax highlighting disappears when adding .j2 or .erb filename extensions: i.e. nginx.conf.j2, webservice.conf.erb. Can you add filename matching to support template extensions?

I see this feature supported in a lot of other VSCode extensions, I wonder if there's a VSCode library that can be leveraged.

@pedrolamas
Copy link

You can add that manually just by adding a .vscode/settings.json file to the root of your folder with this:

{
    "files.associations": {
        "*.js": "nginx",
        "*.erb": "nginx"
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants