Syntax Highlighting
Gherkin Keywords
No '*'
Note that using * (asterisk character) as a step keyword is not supported as it does not improve readability of the examples
User Story Keywords
Simple Step Parameters
Doc String Step Parameters
Doc strings are highlighted in purple colour
XML Step Parameters
Tags
Comments
Questions & Answers
Invalid text
If there is any text that according to the Cucumber Gherkin syntax does not belong to any of the Feature file elements, then it is underlined in red and an error icon is shown in the gutter
Note that such errors to be highlighted the 'Errors' option in the Gutter options drop down menu must be turned on as shown below
Autocomplete
Press keyboard shortcut Ctrl+Space or Alt+Click to bring up the autocomplete options menu.
Gherkin keywords
Examples table header
If you need to rename a scenario parameter that you have already entered in several of the scenario steps, do it by updating the last occurrence that is in the Examples header section.
This way the other occurrences above will be updated automatically and momentarily highlighted in yellow as you type to indicate the automatic renaming.
Auto Formatting
Correct line indentation
No Tabs
Note that using the Tab characters for indentation is not supported. Whenever you press the Tab key two spaces will be inserted instead.
If you are pasting Feature content from external editors, any Tabs that are pasted may lead to auto indentation not working.
Automatic alignment of tables
Syntax Checking
Any Gherkin syntax errors are automatically highlighted so that they could be easily corrected.
Out of order Gherkin keywords
Missing data table header names
Missing data table cells
Missing Examples table value
Unused Scenario parameter
Duplicate Examples table column
Fold Sections
The following Feature sections can be folded:
Feature
Background
Rule
Scenario
Examples
Comments that span consecutive lines
Doc string step parameters
Fold gutter icons
Folded section summary
Fold sections on page load
It is often useful to have certain sections folded when the issue page loads in order to minimize information overload when you simply want to quickly review the issue at a high level without going into the details. This behaviour can be turned on/off using the Editor preferences option highlighted below.
Fold all Scenarios
To fold or unfold all Scenarios in one operation use the highlighted toolbar buttons
Fold all Rules
To fold or unfold all Rules in one operation use the highlighted toolbar buttons and hold ‘Alt’ key while clicking
Add Comment