Search code examples
intellij-ideaintellij-14

How can I set IDE level default package name in Intellij IDEA?


Is there a way to set the default package name in Intellij?

i.e. whenever I create a new Java class, the package would be defaulted to "org.my_domain_name.xxx"


Solution

  • If you create the class by right-clicking on the package where you want the class to end up and choosing New --> Java Class, then IntelliJ will put the class in that package and will fill in the correct package statement for you.