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.
精彩评论