Play 2 sub-project route file code completion

How do I get code completion, coloring, and all the other goodness in a Play 2 sub-project with a route file that's named xyz.Routes? It appears to be treated as a text file.

If you look at the documentation for splitting route files,, you will notice the note "Also, the route file in

is called
1 comment

You can define .Routes as a scala extensions. Settings->File Types, select Scala and add the Routes as a scala extension.


Please sign in to leave a comment.