Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

Press keyboard shortcut Ctrl+Space or Alt+Click to bring up the autocomplete options menu.

Gherkin keywords

image-20241001-170504.png

Available options are dependent on where the cursor is currently positioned within the feature file.

image-20241001-154953.png

Tip - to quickly change the Step keyword simply hover over and do Alt+Click to show the autocomplete options menu. Picking an option will replace the already entered keyword that is temporarily highlighted in yellow.

image-20241001-163733.png

Examples table header

Inside the header row of an example table the autocomplete menu contains names of the scenario parameters that have been entered above using the <> step parameter syntax.

image-20241001-162646.png

Autocomplete can also be triggered if the cursor is inside the already entered column header text to easily replace the header value with another

image-20241001-162418.png

Autocomplete can also be triggered by placing the cursor after the last header column and pressing 'Ctrl+Space'

image-20241001-162049.png

Once the option is picked the autocomplete will also enter the necessary '|' divider characters for the new column and place the cursor in the next cell down

image-20241001-162014.png

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.

image-20241001-161314.png

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.