No Colours in Specflow Feature Files on Visual Studio
Solution 1
There is an option for coloring syntax in Tools->Options->SpecFlow that could cause the problem.
EDIT:
Ensure your SpecFlow extension is installed correctly:
Go to Tools->Extensions and updates -> Installed look for SpecFlow for Visual Studio 2015. You might try to uninstall and install it again.
If you can't find in the list then select Online, in search type specflow, then select result and install.
Solution 2
Gherkin code highlighting issue on Visual Studio 2019
For Visual studio 2019 need to install an Extension Extensions -> Manage Extensions -> Search for Specflow
Can see Extension by name 'Specflow for Visual Studio 2019' click and restart the Visual Studio 2019 app.
Related videos on Youtube
Taran
QA Engineer who has written UI and API Test Automation Frameworks following Page Object Pattern standards in languages such as C# .net, JavaScript and Java.
Updated on September 14, 2022Comments
-
Taran over 1 year
I have the latest version of SpecFlow installed, and still the feature files display uncoloured, like so...
(Not enough rep to insert images)
Specflow uncoloured feature files
Is there certain configurations that are set for colours to be displayed in Specflow files?
VS2015 Specflow 2.1
-
Renatas M. over 7 yearsReally poor "question". What have you tried so far? Have you tied any of these?
-
-
Taran over 7 years@Renuiz, as mentioned in the replied comment, specflow doesn't come up under options for me, even though it is installed :/
-
Renatas M. over 7 yearsThen Extensions and Updates -> uninstall clean temp, restart VS or even PC and install again. I can't dig in your pc configuration so it's hard to say what's wrong :)
-
Taran over 7 years@Renuiz, no option to uninstall clean temp :/ on my version of VS2015 i.stack.imgur.com/MdOmv.png
-
Renatas M. over 7 yearsTools->Extensions and updates -> Installed look for SpecFlow for Visual Studio 2015
-
Renatas M. over 7 yearsIf you can't find in the list then select
Online
, in search type specflow, then select result and install.