I want to learn grails and i want to use IntelliJ IDEA and my professor said that I could connect grails to IntelliJ IDEA but i dont know how. Can you please help me with
Create a grails project first through grails commands. Then open idea and use the option import a grails project and point to the directory where you did the init of the grails project. Idea will do the rest.
For an existing project, I always use:
grails integrate-with --intellij
That'll create .ipr and .iml files for you ready to open up by intellij.
There are a couple of good pages that can help you:
http://www.grails.org/IDEA+Integration
http://www.jetbrains.com/idea/features/groovy_grails.html
You can create your Grails project using Grails console and then import it into IntelliJ or you can create it directly in IntelliJ, I think it is a matter of preference since both ways work just fine.
If you are a windows user, you might be disappointed , as at the moment (may 2016), grails support is removed from windows environment, as can be verified from here: https://blog.jetbrains.com/idea/2015/10/intellij-idea-15-eap-supports-grails-3/ As quoted "We drop the Grails tool window. We’re sorry about it"
So, just download the latest IntelliJ IDEA 15 EAP if you are facing an issue