A Visual Studio Code extension for Cucumber projects that:
- enables syntax highlight for
.feature
files; - offers code snippets or templates to write
Carrot
scenarios faster.
The syntax highlight is applied automatically to .feature
files. If that doesn't happen, you can open the Command Pallete, type Change Language Mode and select the Gherkin
. Carrot
is an extension of Gherkin
and hence uses the same .feature
file extension.
To use snippets you just need to type the prefix and press Tab
. These are the snippets we provide:
fea
- Featuresc
- Scenario headingsce
- Scenariosco
- Scenario Outlinesteps
- Multiline stepsgiv
- Given stepwhe
- When stepthe
- Then stepdes
- Design linksuc
- Success criteriakpi
- KPI to trackimp
- Impact expected
Feature snippet contains the keywords, user story
, okr
, epic
and sprint
. Hence, they are not provided separately.
Given you have Visual Studio Code installed:
- Open the command palette
Ctrl-Shift-P
(Windows, Linux) orCmd-Shift-P
(macOS). - Select Install Extension, search for Carrot (Gherkin extension) Syntax and Snippets, install it.
- Finally, reload Visual Studio Code.
Feature requests or issue reports should be done here.
Feel free to help us improve this extension with pull requests at our official repository.
👏 Our big thanks to our contributors and to other libraries and resources we used to develop this extension 👏
- Author: Talvinder Singh
- Author: Steve Purves
- Maintainer: Diogo Nunes
- Contributors: (these amazing people)