Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get Gherkin syntax highlighting for .feature files in Visual Studio?

There's no highlighting for Feature, Scenario, Given, When, Then, etc. keywords by default. Is there a ready made template out there to enable this?

like image 313
thenextwebguy Avatar asked Jun 02 '10 15:06

thenextwebguy


People also ask

How do I enable syntax highlighting in Visual Studio?

press CTRL + K then press M.

Does Visual Studio have syntax highlighting?

Syntax highlighting determines the color and style of source code displayed in the Visual Studio Code editor. It is responsible for colorizing keywords like if or for in JavaScript differently than strings and comments and variable names.

How do I run Cucumber feature code in Visual Studio?

Cucumber-Quick is a VSCode extension that helps you to run cucumber scenarios and features directly from VSCode editor. You can simply right-click on any feature file and choose the option from the context menu to run a specific scenario or the whole feature file.

Does Visual Studio support Cucumber?

Visual Studio Code is a code editor for Windows, Linux, or macOS. You can use it with a Cucumber (Gherkin) plugin.


1 Answers

The recent vesions of SpecFlow have a built-in syntax highlighting for VS2010.

like image 118
Gaspar Nagy Avatar answered Oct 21 '22 21:10

Gaspar Nagy