I am attempting to create a .rb file within Ruby, using these steps:
1. Create New File
2. Name new file "a"
3. Associate file to .rb filetype
This creates a file named "a" that works fine; however, when I rename this file to a.rb it immediately converts the file to a text file. Why is that?
I have been creating files this entire time by creating a new file and naming it "a.rb
" from the start, and it automatically associates it to a ruby file. Now it just associates that naming to a text file and I have to leave off the .rb
and manually assign the filetype later. What changed?