Change a File type from text to Haml

I created a new file, but i accidently forgot to add the .haml extension at the end of the file name. I tried to refactor the file by adding the correct extension after the fact. The filename with the extension is showing the correctly, but for whatever reason this file is not updated.  The icon has not changed and the text within the file is still in plain text.  Is there anyway to update the file to show it as a haml file? 

I have tried deleting and recreating the file with now success. 

Any guidedness would be appreciated. 

 

0

Please check if your_file_name.haml is added to text file patterns in Preferences | Editor | File types -> 'Text files' file type. Removing this pattern should solve your problem.

0
Avatar
Permanently deleted user

The extension is being recognized in the editor.  I have about 30 others that are displaying correctly. It's only this one. 

0

please read my comment. Yes, .haml extension is recognized. the problem is that the particular file name is registered as text file

0

请先登录再写评论。