Sooo I've recently switched from Eclipse to IntelliJ IDEA because (I feel) IntelliJ is much better. But one thing might make me move back to Eclipse: it's freakin' hard to make a libGDX project in IntelliJ.

I followed the instructions to make a libGDX project in IntelliJ and it worked. But to do that for every libGDX project takes waaaay too much time. I tried to use the one libGDX project as a base and import that project as a new project but it didn't copy over any of the modules (Android, Desktop, and Main). Also, it's not written how to make the iOS module.

For anyone who uses IntelliJ and libGDX: Please help. This IDE works wonders better than Eclipse and looks nicer too (Darcula theme FTW ) and I'd hate to have to switch back to Eclipse because of this. Thanks in advance!

Kind of - but not really. The assets folder isn't linked and I can't import the HTML and iOS modules (the HTML problems are probably because I didn't setup any of the GWT stuff ). But if I can get the assets folder working, that's a muuuuch faster way to get everything setup; despite not having iOS.

Not everyone loves eclipse though... I personally hate the themes on eclipse, they never just look right, but I love eclipse in general. I've heard a lot of fanfare surrounding IDEA though, so I might check it out.

I don't know how to link assets to a project in IDEA, but I imagine Google knows.

It mentions in #12Link the assets between Android module and Main module:Make a run configuration for the DesktopStarter and set the Working directory to be the Android/assets directory.ORCreate a directory named data in the main module, and make a sym-link from the assets directory in the Android module.

I tried IDEA a couple days ago. It's disorienting coming from Eclipse, but in less than 10 minutes I had libgdx running (by importing Eclipse projects and then fixing up a few issues). I like the idea of having more and fancier completions and other smarts, I just can't get over how ugly the Swing stuff is. Also the IDE is a bit slow. Some stuff I do is annoying in IDEA or even impossible, such as run configuration specific classpaths.

@namrogThanks! I used the working directory method that last night and it worked wonderfully.

I love Eclipse. I've used it for over two years now. But there were too many minor issues that piled up and made me want to switch. I'm still not 100% certain I want to stick with IntelliJ, though, since Eclipse has more support.

Hot swapping is possibly one of those things that would prevent me from switching IDEs. Such a useful feature. Plus, I just started learning all the keyboard shortcuts and I dont want to learn new ones!

@opiop65Whoa hey, hot-swapping is a JVM feature, not Eclipse feature. IntelliJ IDEA supports hot-swapping.IntelliJ IDEA also has support for Eclipse's compiler.Lastly, to hammer another nail in Eclipse's coffin for you, you can set IntelliJ IDEA's keymap to Eclipse's (which is what I've done).

It is isnt it? I kept thinking that the JVM supported it while I was writing that post, but I didnt bother looking it up!! Now I look stupid oops And yeah I can remap the keys but then I don't have a good reason to stay with eclipse so I'll just pretend you didn't just tell me that

I'm not going to voice an opinion about what IDE is better (because I find getting emotionally attached to a piece of software quite useless), but it is worth to investigate the features of the JVMs debugger. I even set it up to be able to debug a Maven build, and to hook into the debugging environment of not my own IDE but that of a coworker. In stead of having to walk over to his computer, I can just make the IDE connect a debugging session to his environment and he can trigger the breakpoints to show me in my own IDE what is happening Mighty useful stuff. Imagine having a web environment running somewhere and the production server is causing problems you are not getting in development; you can hook up a debugger to the production machine and see what is going on. God I love Java.

Also the IDE is a bit slow. Some stuff I do is annoying in IDEA or even impossible, such as run configuration specific classpaths.

Well those things are pretty much killing my enthusiasm, especially considering I wanted IDEA to be FASTER, not slower.

Also I like to raise the question: Isn't the eclipse compiler "better" than the stock jdk javac ?

It's much faster for me, that's the main reason I switched from eclipse to IDEA. It seems to be strongly dependent on the system, you have it try it out for yourself. I've got it running in Arch Linux.

@opiop65Badlogicgames hasn't posted about it yet so yeah your only clue is the README. Basically it is command line tool that will generate Eclipse, IDEA, and CLI compatible of libgdx projects. I am in the middle of struggle getting it work, can't wait to see the CLI feature!

I have setup maven to create my libgdx project and except the part on the native library extract from maven dependency, all modules have been integrated smootly in intellij;I advice anyone to create project from a tool like maven or gradle vs IDE.

i have never been able to get the HTML part working, but everything else is well documented. if you havent fixed the working directorys yet, here is what i always do:-Run your app once-Close the app-Press on the drop down menu with the name of your app on it-Edit configurations-change working directory

Works like a charm.I stumbled upon Intellij once when i was still using eclipse. I found it so much faster and the autocompletion is in a whole different league with intellij.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org