Skip to content

cucumber syntax and snippets for Visual Studio Code

Notifications You must be signed in to change notification settings

gferreri/vscode-cucumber

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cucumber

Installs syntax and snippets for Cucumber features and the Gherkin language.

How to use

Source files with the .feature extension will automatically have syntax colouring applied. Otherwise select the Gherkin option from the Language Mode menu to apply colouring.

Code snippets can be inserted as with other languages (e.g. Ctrl+Space and typing a prefix). The following are included:

  • fea - Feature
  • sc - Scenario heading
  • sce - Scenario
  • sco - Scenario Outline
  • steps- Multiline steps
  • giv - Given step
  • whe - When step
  • the - Then step

Installation

  • You will need to install Visual Studio Code 0.10.0 or higher.
  • From the command palette Ctrl-Shift-P (Windows, Linux) or Cmd-Shift-P (OSX) select Install Extension, choose Cucumber and reload Visual Studio Code.

Known Issues

  • the line comments keyboard shortcut is not working

Todo

  • Goto/peek step definition from a step in .feature file

Acknowledgements

This extension uses the TextMate Syntax and Snippet definitions for Cucumber from this project. This extenion is provided thanks to the efforts of the contributors there.

Contributions

Please contribute by posting issues or pull requests on the extension's github repo

Author

This extension was built by Steve Purves ([email protected])

About

cucumber syntax and snippets for Visual Studio Code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published