a file is treated/displayed as plain text and cannot revert it

I created a new file, and forgot to type the extension. Then RubyMine asks how it should be displayed, so i thought: nevermind, entered the first option, and then changed the name to include the ".rb" file-extension.
Alas, unfortunately, it seems that every file which is called the same is handled as plain-text in all my rubymines.

So i have no syntax colouring, my tabs are wrong, ...

How can i revert this?

0
5 comments

Look at registered patterns in Settings | File Types

0

More specifically, remove the *.rb extension fron Text files

0

Great! That was the spot I was looking for. Actually, i had to remove unique_id.rb (which was how the file was called).

Thanks!

0
Avatar
Permanently deleted user

I don't know which version they changed it. But now you can do: select the file you accidently marked as Plain Text, and go File -> File Properties -> Associate with File Type... and change to its original type.

2

Thanks a lot saved my day

0

Please sign in to leave a comment.