Reputation: 1948
I've got a rather large project set up in intellij. The project uses scala scripts to specify various instances of the program.
It used to be the case that the scala scripts were in a resources directory of the project, but, this is not ideal. I've moved them, so my project looks like this (the idea is, ultimately, to move them away completely)
+Project root
+subproject
+src.main.resources
[Scripts were here]
pom
iml
pom
iml
+scripts
[scripts are now here]
but now intellij syntax highlighting does not recognise the scripted imports relating to the project. Is there some way of getting intellij to recognise the dependency of these scripts without going back to a module structure and the src/main/resources folder?
Upvotes: 0
Views: 137
Reputation: 16709
Define scripts
as a source folder:
File > Project Structure > Modules > Sources
and mark scripts
as Sources
(blue icon).
You can find more info on IntelliJ WebHelp.
Upvotes: 1