I've got a file named Vagrantfile and it's a ruby file but it cannot have the .rb at the end of the filename.
Is there a way to tell Netbeans that it's Ruby file?
I've got a file named Vagrantfile and it's a ruby file but it cannot have the .rb at the end of the filename.
Is there a way to tell Netbeans that it's Ruby file?
Right-click the file in Files view (Ctrl-Shift-2 or ⌘-Shift-2) and look for "Open As...
". When the context menu opens, select "text/x-ruby
". Note that this works only when a file type is not detected automatically.
There is a caveat with this: Once a file w/o extension is opened as Ruby file, it treats all files w/o extension as Ruby files.