开发者

In RubyMine, how do you get it to recognize Cucumber feature files?

I created a new feature file, test.feature, but RubyMine does not recognize it as a cucumber feature file and instead tre开发者_StackOverflowats it as a simple text file. I can not dig through the file, and it does not receive syntax highlighting.

I have tried deleting and recreating the file, but it still treats it as a simple text file.

How do I get RubyMine to recognize this file as a feature file so I can use the IDE's features on the feature file?


File | Settings | File Types | Cucumber scenario files, make sure *.feature extension is added there.


For MacOS, go to RubyMine > Preferences > IDE Settings > File Types to add Registered Patterns.

Under Cucumber scenario files, check to see if "*.feature" is listed. If not, add it for correct Cucumber syntax highlighting. More information here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜