Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (578)
games submitted by our members
Games in WIP (498)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1] 2 3
  ignore  |  Print  
  I Switched to IDEA!  (Read 5406 times)
0 Members and 1 Guest are viewing this topic.
Offline ra4king

JGO Kernel


Medals: 322
Projects: 2
Exp: 4 years


I'm the King!


« Posted 2013-03-09 05:38:50 »

Beginning about 2 weeks ago, I officially began trying out IntelliJ IDEA due to exasperation with Eclipse.

I can finally comfortably say that I have fully and officially switched.

It all began when Eclipse decided to betray me and blow up in my face, destroying my workspace and erasing all my settings. That was the final straw for me. I had already been interested in IntelliJ IDEA earlier, especially with their new Darcula theme, which is *much* sexier than any other theme they had.

Other virtues of IDEA are its SUPERIOR editor, including the smarter Intellisense. The UI is also very well organized and the settings are very customizable. I could go on listing how it's much better in many ways.

Of course, it's not all roses and rainbows. The only complaints I have so far are its lack of an option to keep tabs on blank lines and the lack of a "Favorite" feature like Eclipse does with static imports. Part of my weird self-imposed strict formatting rules is to keep tabs on blank lines at the same level as if there were code there. IDEA's formatter strips them. Eclipse has an option to keep them in the formatter. Thankfully, a nice workaround was that I found a plugin that used the Eclipse formatter and all was well again.

The Favorite feature in Eclipse allows you to set a bunch of classes for whose static methods you would like it to auto-detect when you begin typing them. For example this is especially useful with LWJGL functions: I begin typing glGenBu... and it finds it, statically imports org.lwjgl.opengl.GL15.* and I'm happy. There is no such equivalent feature in IDEA, but this has not be a problem for me really since I already know where the functions are and hitting Alt+Enter+Enter (yes, enter twice) with the class highlighted will statically import the class in IDEA.


If anyone decides to try it out, you will notice that the keymap is very different than Eclipse's. Fear not! There is already an Eclipse pre-set that you can switch to in Settings -> Keymap. With that and a couple more customized settings, I was able to have the shortcuts I was comfortable with Smiley

Of course, this post wouldn't be complete with a screenshot (click for better view):



Only visuals changed are a couple syntax colors and the font is DejaVu Sans Mono.

Offline ReBirth
« Reply #1 - Posted 2013-03-09 05:40:06 »

TRAITOR! Grin

Offline Agro
« Reply #2 - Posted 2013-03-09 05:48:44 »

TRAITOR! Grin

Yeah! D:

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline relminator
« Reply #3 - Posted 2013-03-09 06:22:45 »

Looks good. Will try! Thanks!
Offline concerto49

Junior Member





« Reply #4 - Posted 2013-03-09 10:34:35 »

I've considered switching but it still lacks a lot of features that Eclipse had. Have tried it on every new release.

High performance, fast network, affordable price VPS - Cloud Shards
Available in Texas, New York & Los Angeles
Need a VPS Upgrade?
Offline 20thCenturyBoy

Senior Member


Medals: 3


So much to learn, so little time.


« Reply #5 - Posted 2013-03-09 11:06:18 »

How much is IDEA these days? I tried it a few years ago but nothing really convinced me to part with hard-earned moolah over Eclipse.
I don't use/need any "enterprise" features or GUI designers anyway.

Is there a "killer" feature? Or is it just a matter of many small improvements?

"I have never done unit testing and I don’t find it a very useful concept" - Jonathan Blow
Offline Spasi
« Reply #6 - Posted 2013-03-09 11:36:56 »

lack of an option to keep tabs on blank lines and the lack of a "Favorite" feature like Eclipse does with static imports. Part of my weird self-imposed strict formatting rules is to keep tabs on blank lines at the same level as if there were code there. IDEA's formatter strips them. Eclipse has an option to keep them in the formatter.

Not sure why you need that. Press <end> on an empty line (or <enter> on the line before) and the caret will move to the correct indentation level for the current scope.

The Favorite feature in Eclipse allows you to set a bunch of classes for whose static methods you would like it to auto-detect when you begin typing them. For example this is especially useful with LWJGL functions: I begin typing glGenBu... and it finds it, statically imports org.lwjgl.opengl.GL15.* and I'm happy. There is no such equivalent feature in IDEA.

Try glVAP <ctrl> + <double space>. You'll still have to do the static import intention, but I bet that just blew your mind.

How much is IDEA these days? I tried it a few years ago but nothing really convinced me to part with hard-earned moolah over Eclipse.
I don't use/need any "enterprise" features or GUI designers anyway.

Is there a "killer" feature? Or is it just a matter of many small improvements?

The Community edition is free and good enough for anything, unless you do web development. The killer feature is its editor.
Offline Nate

JGO Kernel


Medals: 128
Projects: 3
Exp: 14 years


Esoteric Software


« Reply #7 - Posted 2013-03-09 11:51:08 »

Consolas is a better font. Smiley Also look at all that wasted space on the right?! Fill it with tools!

Offline jonjava
« Reply #8 - Posted 2013-03-09 14:22:52 »

Is it lighter than Eclipse?

Offline ReBirth
« Reply #9 - Posted 2013-03-09 14:44:32 »

Is it lighter than Eclipse?
From my experience, no. Dunno compared to netbean because IMO netbean > heavier > eclipse.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline JESTERRRRRR

Senior Member


Medals: 6
Exp: 1 year



« Reply #10 - Posted 2013-03-09 15:13:44 »

netbeans king of IDE
Offline Spasi
« Reply #11 - Posted 2013-03-09 16:03:20 »

For performance, I recommend the following:

- Disable any plugins that are not useful to your work.
- Configure inspections to your needs. The best approach is to use a different set of inspections for on-the-fly editor highlighting and a different one for "offline" analysis.
- Same for intentions, you may want to disable the uninteresting ones.
- Disable or tune the delays of the automatic re-parsing / code completion / parameter info popup.
Offline seismic

Senior Member


Medals: 3
Projects: 1



« Reply #12 - Posted 2013-03-09 18:54:30 »

Using IDEA for over 2 month now
Never going back to eclipse....probably Cheesy
Offline Agro
« Reply #13 - Posted 2013-03-09 20:28:17 »

When I tried IDEA on my comp, it took up more resources than eclipse did.

Offline ra4king

JGO Kernel


Medals: 322
Projects: 2
Exp: 4 years


I'm the King!


« Reply #14 - Posted 2013-03-09 21:26:17 »

lack of an option to keep tabs on blank lines and the lack of a "Favorite" feature like Eclipse does with static imports. Part of my weird self-imposed strict formatting rules is to keep tabs on blank lines at the same level as if there were code there. IDEA's formatter strips them. Eclipse has an option to keep them in the formatter.

Not sure why you need that. Press <end> on an empty line (or <enter> on the line before) and the caret will move to the correct indentation level for the current scope.

The Favorite feature in Eclipse allows you to set a bunch of classes for whose static methods you would like it to auto-detect when you begin typing them. For example this is especially useful with LWJGL functions: I begin typing glGenBu... and it finds it, statically imports org.lwjgl.opengl.GL15.* and I'm happy. There is no such equivalent feature in IDEA.

Try glVAP <ctrl> + <double space>. You'll still have to do the static import intention, but I bet that just blew your mind.
It's still super annoying when putting the cursor in general. Requires me to remember to hit End every time.

I disabled Ctrl+Space because Smart Type is better. Also someone else told me about Ctrl+Alt+Space, which works much better! Smiley

Is it lighter than Eclipse?
Yes, MUCH faster startup/close and uses less RAM.

Consolas is a better font. Smiley Also look at all that wasted space on the right?! Fill it with tools!
Nahh nothing beats DejaVu Sans Mono! And what tools could I use?

Offline cylab

JGO Knight


Medals: 34



« Reply #15 - Posted 2013-03-09 21:34:35 »

As much as I like Idea, this is highly dependent on the type and size of projects you are working with.

Mathias - I Know What [you] Did Last Summer!
Offline ra4king

JGO Kernel


Medals: 322
Projects: 2
Exp: 4 years


I'm the King!


« Reply #16 - Posted 2013-03-09 22:04:01 »

As much as I like Idea, this is highly dependent on the type and size of projects you are working with.
The enormous IntelliJ source code opens extremely quickly for me Smiley

Offline lhkbob

JGO Knight


Medals: 32



« Reply #17 - Posted 2013-03-09 22:04:52 »

Idea's maven and VCS integration is a lot nicer and native compared to the plugins that Eclipse makes you use.

I switched just recently, and the weirdest thing for me to get used to is not needing to save files.

Offline Spasi
« Reply #18 - Posted 2013-03-09 22:07:49 »

Also keep in mind that the first time you open a project or set up a library/JDK, IDEA starts indexing it in the background. Performance and functionality will be degraded until indexing completes.
Offline cylab

JGO Knight


Medals: 34



« Reply #19 - Posted 2013-03-09 22:10:57 »

I use it at work with project consisting of 50 maven-modules. It's still useable (and maybe better than eclipse), but it is definately not MUCH faster and it does not use less ram either...

Just a reality check, no bashing...

Mathias - I Know What [you] Did Last Summer!
Offline ReBirth
« Reply #20 - Posted 2013-03-10 03:17:30 »

@ra4king
But it's your computer that so fast D:
Quote
Nahh nothing beats DejaVu Sans Mono! And what tools could I use?
Raise your hand Droid Sans Mono users!

Offline sproingie
« Reply #21 - Posted 2013-03-10 04:22:24 »

Adobe Source Code Pro for me.  Looks better when the antialiasing settings are crappy like they always are on my remote X sessions.  DejaVu Sans Mono when the settings aren't crappy.

Offline appel

JGO Wizard


Medals: 49
Projects: 5


I always win!


« Reply #22 - Posted 2013-03-11 02:27:48 »

I use IntelliJ IDEA at work, but I use Eclipse at home.

The only reason for why I use IDEA at work is because it's the only ide that can run the projects we use. Eclipse just sucks with Maven projects... just plain pure sucks. But IDEA can open a multi-module maven project no problem.

However, IntelliJ IDEA is far inferior to Eclipse when it comes to coding, refactoring, navigating the source code. But this can be just what you're used to. I've never felt at home writing code using IDEA, because the text editing mode is different from any other text editor, slow gui, etc.

If you have a plain Java project, Eclipse is the way to go. But if you got a complex project... Eclipse can suck.

The thing with Eclipse is the many versions of it. You can download like a dozen different versions of it, and you have to install plugins just to get basic functionality like maven support. And those plugins almost never work as expected. Eclipse is a plugin fiasco. Is it too much to ask to have one editor that works?

The strength of getting an out-of-the-box IDE from a vendor like Jetbrains is that they incorporate all those things into one IDE and make sure it works.



But thankfully, most of my work doesn't involve Java, but Javascript, html, and such. So I can easily use Sublime text editor... which is wonderful to use:
http://www.sublimetext.com/

Check out the 4K competition @ www.java4k.com
Check out GAMADU (my own site) @ http://gamadu.com/
Offline ReBirth
« Reply #23 - Posted 2013-03-11 02:31:12 »

Hmm never using maven on Eclipse (because I'm always alone) so that may be IDEA's winning point.

I want to use sublime since everyone scream it's good, but this bothers me
Quote
Sublime Text 2 may be downloaded and evaluated for free, however a license must be purchased for continued use. There is currently no enforced time limit for the evaluation.

Offline SwampChicken
« Reply #24 - Posted 2013-03-11 03:30:46 »

I've been using IntelliJ since around 2000...
The new dark theme in the side panels was very welcome!

ps: you missed out on their fantastic deal on their 'end-of-the-world' sale. $50 for the pro version.

[CTRL]+[ALT]+U ftw!
Offline ra4king

JGO Kernel


Medals: 322
Projects: 2
Exp: 4 years


I'm the King!


« Reply #25 - Posted 2013-03-11 05:37:26 »

However, IntelliJ IDEA is far inferior to Eclipse when it comes to coding, refactoring, navigating the source code. But this can be just what you're used to. I've never felt at home writing code using IDEA, because the text editing mode is different from any other text editor, slow gui, etc.
One of the biggest reasons I switched was the editor, so I quite disagree with this. What is inferior in coding, refactoring, and navigation? I found them much easier and nicer than Eclipse! And for some reason, especially with the new dark Darcula theme, I've felt very much at home with it.

So this basically just boils down to taste? Smiley

But thankfully, most of my work doesn't involve Java, but Javascript, html, and such. So I can easily use Sublime text editor... which is wonderful to use:
http://www.sublimetext.com/
Sublime FTW! Smiley

Offline appel

JGO Wizard


Medals: 49
Projects: 5


I always win!


« Reply #26 - Posted 2013-03-11 12:40:01 »

I am using the Community Edition, and it's up to date. The look'n'feel is something like from the 1980's.

And the keyboard shortcuts are idiotic:

ctrl+d (deletes current line in eclipse)
ctrl+d (duplicates current line in idea)

the "d" is most often attributed to "delete" and not "duplicate". In "vi" this applies, and other editors as well. The cases where you wish to duplicate current line are FAR FEWER than the cases in which you want to delete the current line, yet Jetbrains decided it was more convenient having to do "ctrl+y" to delete current line rather than "ctrl+d"... yes, go a head, try that on your keyboard to see which one is easier to do. Personally I have to flex my entire hand to be able to "ctrl+y", but I can do "ctrl+d" with ease.

There are many other subtle things that make IntelliJ inferior to Eclipse. Renaming a variable where your caret is, requires doing alt+shift+r in eclipse, but in IntelliJ IDEA? It requires the excruciating shift+f6. These Jetbrains guys must have really really big hand if they're able to do that with ease. It is like they decided to put your left hand through hell by moving most common keyboard shortcuts to crazy locations.

Do they know what they are doing in other aspects of their IDE when they can't even make common keyboard shortcuts comfortable to use? The human-interface factor is poor in IDEA, and this is reflected everywhere.

Performance is strange as well.
Right-clicking ANYWHERE in IDEA requires my computer to do strange work every time, making the context menu appear maybe 500-1000 ms. later than instant. And sometimes out of the blue a lot of background work is being done, something I never asked for.

Check out the 4K competition @ www.java4k.com
Check out GAMADU (my own site) @ http://gamadu.com/
Offline ReBirth
« Reply #27 - Posted 2013-03-11 12:42:25 »

About coping lines, it will take some time to remember that. I love how Eclipse do it by ctrl+alt+arrow for direction pasting.

Offline Spasi
« Reply #28 - Posted 2013-03-11 13:07:37 »

appel, why not switch to an Eclipse keymap like ra4king did? It's even built-in (also has Netbeans, Emacs and more).

ctrl+d (deletes current line in eclipse)
ctrl+d (duplicates current line in idea)

the "d" is most often attributed to "delete" and not "duplicate". In "vi" this applies, and other editors as well. The cases where you wish to duplicate current line are FAR FEWER than the cases in which you want to delete the current line, yet Jetbrains decided it was more convenient having to do "ctrl+y" to delete current line rather than "ctrl+d"... yes, go a head, try that on your keyboard to see which one is easier to do. Personally I have to flex my entire hand to be able to "ctrl+y", but I can do "ctrl+d" with ease.

I never use either. ctrl+c without any selection copies the entire current line. I then paste (ctrl+v) to duplicate. Same for delete, either ctrl+x (cuts the entire line) or shift+delete (deletes entire line).

Performance is strange as well.
Right-clicking ANYWHERE in IDEA requires my computer to do strange work every time, making the context menu appear maybe 500-1000 ms. later than instant. And sometimes out of the blue a lot of background work is being done, something I never asked for.

I can't comment on performance without knowing specifics about your setup, but I definitely don't see this happening locally. Also, I will gladly trade a slight performance penalty for extra features. Right-click in source code == context helps refine the list of options available. Context-sensitivity is something that IDEA gets right and does better than any other IDE.

Obviously there is a trade-off to be made here between performance and features and that's a personal choice. But horror stories about performance are usually the result of some broken plugin or wrong setting.

About the LnF, Darcula's contrast is not enough for my eyes. I use Swing's native OS look'n'feel (Windows in my case) and it looks fine to me.
Offline ra4king

JGO Kernel


Medals: 322
Projects: 2
Exp: 4 years


I'm the King!


« Reply #29 - Posted 2013-03-11 13:25:16 »

Darcula theme is beautiful for my eyes except for a couple syntax colors which I changed.

Appel, you can't complain the keymap is bad when you can easily change it to your IDE's presests. Tongue

Pages: [1] 2 3
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (27 views)
2014-04-15 18:08:23

BurntPizza (22 views)
2014-04-15 03:46:01

UprightPath (38 views)
2014-04-14 17:39:50

UprightPath (20 views)
2014-04-14 17:35:47

Porlus (36 views)
2014-04-14 15:48:38

tom_mai78101 (61 views)
2014-04-10 04:04:31

BurntPizza (119 views)
2014-04-08 23:06:04

tom_mai78101 (219 views)
2014-04-05 13:34:39

trollwarrior1 (186 views)
2014-04-04 12:06:45

CJLetsGame (193 views)
2014-04-01 02:16:10
List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:05:20
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
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!