有没有办法使用其他扩展名而不是.feature?

时间:2019-04-16 11:33:25

标签: visual-studio-code cucumber vscode-settings

我使用一些以Gherkin模式编写的文件,但它们没有扩展名“ .feature”。我试图更改一些与黄瓜扩展名有关的可视代码文件,以便能够突出显示不是.feature但没有成功的文件。

例如:

工作区settings.json

{
    "folders": [
        {
            "path": "/home/user/git"
        },
        {
            "path": "/home/user/Documents/scripts"
        }
    ],
    "settings": {}

    "cucumberautocomplete.steps": [
        "*.myext"
    ],
    "cucumberautocomplete.syncfeatures": "*.myext",
    "cucumberautocomplete.strictGherkinCompletion": true
}

1 个答案:

答案 0 :(得分:0)

它可以更改文件/home/user/.config/Code/User/settings.json并添加以下配置:

    "files.associations": {
        "*.myext": "feature"
    }
{
    "editor.renderWhitespace": "all",
    "window.titleBarStyle": "custom",
    "editor.fontSize": 15,
    "python.jediEnabled": false,
    "terminal.integrated.shell.linux": "/bin/bash",
    "workbench.colorTheme": "Visual Studio Dark",
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
    "[feature]": {
    },
    "files.associations": {
        "*.myext": "feature"
    }
}