Official Visual Studio Code extension for Cucumber and Gherkin Maintained by the Cucumber team and powered by the Cucumber Language Server. Available from the Open VSX Registry and Visual Studio Marketplace. Features
AutocompleteWhen you start typing a step, you will see auto-complete suggestions based on existing step definitions and Gherkin steps. The suggestions are more helpful if your step definitions use Cucumber Expressions but you'll also get suggestions if they use Regular Expressions. Go to step definitionYou can quickly navigate from a Gherkin step to a step definition. Generate step definitionGenerate step definition snippets with a quick fix - IMPORTANT: Generate step definition will only be enabled if there is at least one existing step definition. This is so that the extension can determine the programming language for the step definition, and provide choices for existing files to add it to. Syntax highlightingGherkin keywords and step parameters are highlighted. Undefined steps and syntax errors are underlined. FormattingGherkin documents are formatted using two space indentation. Numeric cells are right-aligned (as in Excel). Non-numeric cells are left-aligned. Document OutlineThe Outline panel displays an outline of the Gherkin document, making it easy to navigate between scenarios. Gherkin LocalisationGherkin supports many translations. To specify a translation, include a New translations or updates are welcome and can be submitted through the gherkin parser. Language SupportStep definitions support is provided for different languages and frameworks. If you experience an issue with a supported language, please raise a detailed bug report or reach out for help through our Slack community. If your language or framework is unsupported, please open an issue or raise a pull request in the Cucumber Language Service - where language support is implemented. Feature File IconsThe Cucumber icon is applied to all feature files in your workspace. This replaces the default document icon, making it easier to identify your feature files at a glance. Extension SettingsIn most cases you shouldn't need to specify any settings as the extension comes with reasonable defaults. If your With multi-root workspaces, you will need to either specify glob paths for each workspace individually (e.g.
|