Skip to content

Commit 564266a

Browse files
authored
Merge pull request #98 from d4niloArantes/vscodeCucumberExtension
Add information about vscode cucumber extension
2 parents e5ea55f + a2e0242 commit 564266a

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.MD

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,29 @@ This can be achieved by restructuring your project to match the layout above _(n
475475
node ./node_modules/selenium-cucumber-js/index.js -s ./features/step_definitions -p ./features/page_objects -o ./features/shared_objects -r ./features/reports
476476
```
477477

478+
### VSCode Cucumber Plugin
479+
480+
Visual Studio Code has also an extension for Cucumber (Gherkin) Language Support + Format + Steps/PageObjects Autocomplete. You can find how to install and use at [Cucumber (Gherkin) Full Support](https://marketplace.visualstudio.com/items?itemName=alexkrechik.cucumberautocomplete).
481+
482+
Following the default structure, the `settings.json` should look like this:
483+
484+
```json
485+
{
486+
"cucumberautocomplete.steps": [
487+
"step-definitions/*.js"
488+
],
489+
"cucumberautocomplete.syncfeatures": "features/*.feature",
490+
"cucumberautocomplete.strictGherkinCompletion": false,
491+
"cucumberautocomplete.onTypeFormat": true,
492+
"editor.quickSuggestions": {
493+
"comments": false,
494+
"strings": true,
495+
"other": true
496+
},
497+
"cucumberautocomplete.gherkinDefinitionPart": "(Given|When|Then)\\(",
498+
}
499+
```
500+
478501
## License
479502

480503
Licensed under [ISC License](LICENSE) © [John Doherty](https://twitter.com/mrjohndoherty)

0 commit comments

Comments
 (0)