How come we can't do that? Seems to be a common feature in other text editors/IDEs, yet jetbrains has not implmented this feature.
My use case:
I am serving web pages using cgi scripts with a shebang to denote filetype rather than an extension.
Rubymine does not detect the file type from the shebang and sets the file type to text.