Skip to main content

Excel Like Data Tables

Gherkin data tables can often be awkward to work with especially when you want to add a new column in the middle of an existing table or want to rearrange rows or columns.

To make working with data tables easier the editor supports features described below

Insert new table via a button click

note

Use the highlighted toolbar button to quickly insert a new empty data table

image-20241002-180701.png

Show cell borders

note

Instead of presenting Gherkin tables in a traditional way using only '|' (pipe) character to separate columns like shown below

image-20241002-175636.png

The editor supports showing tables with cell borders like in the screenshot below

image-20241002-175707.png

info

Note that the '|' characters are still there, they are just hidden and a border is shown instead. So if for example you select all text, copy and then paste the content into an external editor the pipe characters will be present as you would expect.

This feature is turned on by default but can be turned off if required via the Editor preferences menu.

Automatic alignment of columns

note

The columns of data tables are automatically aligned as you type so there is no need to press any keyboard shortcuts or buttons after an edit

image-20241002-154143.png

info

Remove column’s trailing white space
To delete unnecessary white space from a table column, simply place the cursor at the end of the cell’s white space and press the Backspace key or double click to select the white space and press the Delete key.

image-20241001-193951.png

Inline table operations toolbar

note

Placing the cursor inside a table brings up the inline table operations toolbar which has dedicated buttons to easily add/remove/reorder columns and rows or delete the table entirely

image-20241002-154611.png

The inline table operations toolbar can be turned off if required (e.g. before taking a screenshot) via Editor preferences toolbar options menu

Intuitive cell range selection

note

Selecting a range of cells can be done in manner similar to a typical spreadsheet application by either Click & Drag mouse action or via keyboard key combination of Shift+Arrow Keys

image-20241002-161130.png

info

Clearing cells

If you press Delete / Backspace key while a range of cells is selected the values will be deleted but the table structure will remain unchanged

image-20241002-161950.png

Create new table using Tab

Add a new row shortcut

Tab key navigation

Copy & Paste a range of cells