有没有办法使用另一个扩展名而不是 .feature?
Is there a way to use another extension instead of .feature?
我使用了一些用 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
}
更改文件 /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"
}
}
我使用了一些用 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
}
更改文件 /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"
}
}