I have installed the cucumber-java and gherkin plugins in IntelliJ IDEA but when I create a .feature file it is not recognized as a feature file. I did restart IntelliJ and
Navigate to the settings from File option at menu then -> Editor -> File Types --> Select Cucumber scenario (Recognized file types ) observe that if Registered patterns has *.feature if not then click on + icon and add *.feature in Registered patterns. Apply changes and save. It solved my problem of .feature file. Thanks!