In eclipse, you can export the code formatter settings to XML.
Intellij allows you to import these settings. That works for most parts. But even on the intellij help pages you find information that some things won't work (but there is an intellij plugin supposed to help, too). See their blog for example.
For code generation, things are a bit different. But I think that intellij even asks you what "style" to use when generating these methods.
The other part that really requires attention: order of import statements. But that one is easily, as that link implies, you edit your IntelliJ settings once, and they match. For the formatter, theoretically, every time when eclipse releases a new release, you might have to export/import settings again. This is a never ending story ...
Leading to: be aware that fighting tooling is always an uphill battle. In our setup, enough people switched from eclipse to intellij to make it work. I wouldn't have made that step otherwise. And I researched such questions first, instead of first learning a new tool, ending up in large, annoying diffs.