I Switched to IDEA!

So, I switched to Eclipse shortcuts in IDEA… but there’s one critical thing that doesn’t work… it’s the left-hand auto-assignment.

E.g. if you write:

“myService.getData()” (with caret at the end) and then do ctrl+1 you can auto-complete it so it’s:

“List data = myService.getData();”

This is not possible in IDEA even after switching to Eclipse shortcuts.

The built-in way to do it is with an intention: alt+enter => Introduce local variable. Not sure if alt+enter works with the Eclipse keymap. Also, this intention should be the first one almost always, so it’s a quick alt+enter+enter.

Alternatively, you can use a Live Template (another one of my favorite IDEA features). I tried the following and it seems to work ok, but there might a better way:

Abbreviation: auto
Template text:

$TYPE$ $VAR$ = $EXPR$;
$END$

Template variable setup (the order is important):

Name: EXPR
Name: VAR, Expression: suggestVariableName()
Name: TYPE, Expression: rightSideType(), Default value: "Object", Skip if defined: checked

Options: +Reformat according to style
Scope: Java statement & declaration.

You use it by typing: “auto” + + type the expression + + type the variable name.

alt+enter in intellij gives me only “iterate”, possibly because of the returned value is a collection.

Sad this isn’t built in :frowning:

I am afraid, you have to move the cursor one character to the left before hitting Alt+Enter…

Since I’m already using WebStorm I would like to use IDEA, but I don’t like the community version for some reason. I also miss the working sets and workspace feature. Especially with libgdx you have up to 4 projects for you game (base, desktop, android, html) and I would like to switch between them fast (Maybe I’m just did not see this feature?).
I would also love to test out the Scala feature. I started to like scripting languages for some reason.

WebStorm misses this too which is a downer but for JavaScript, WebStorm or PhpStorm are so slick.

I don’t know why… but intellij is ignoring my tabs.

Let’s say you write a line starting with no whitespace/tabs at start:
“myCode”

then you decide to indent it using two tabs:
“–> --> myCode”

yet when you move your caret with the arrow keys, it behaves like the two tabs are whitespaces, so it requires 8 presses on arrow-left to get to the beginning of the line instead of just 2!

This really makes indenting your code difficult, because it depends on where place your caret how much your code is indented when using tab. Intellij uses some mix of whitespace/tab indentation that is really strange. I JUST WANT TABS.

I hate these little off-subtleties, having to customize everything just to get what is standard in other editors.

Take a look at the Code Style options and check “Use tab character” ???

You mean standard in ECLIPSE - ever thought about other people having different preferences? I know enough people that want spaces for indentation. Especially larger teams tend to use spaces instead of tabs to overcome indentation-mess when not using code-formatting on commit…

If it is too much effort to look beyond your nose - just let it be :stuck_out_tongue:

Well, I have a very strong preference of using tabs instead of whitespaces. I have no idea why teams should used fixed number of whitespaces rather than IDE customizable length of tabs. Coding, moving your caret around, in a whitespace infested file is very cumbersome.

Because of the way people tend to manually align stuff with spaces. The whole formatting falls apart when opening such a file with different tab settings.

Actually in Idea it is not much of a difference - but I also prefer tabs.

Obviously, a programmer using whitespaces instead of tabs to indent code should be immediately fired… because that’s a sign of a very incompetent programmer. ;D

Does IDEA require you to refresh the project when stuff changes outside the IDE? That might make me drop Eclipse…

Something which makes me rage right now, and which would probably make you not to switch from eclipse is this:

“Artifacts” (generating jar files…)
Generally they work perfectly. They’re much too complicated, but they work. The problem is: What if you’ve got 2 main functions in one project and want to have two seperate Artifacts for that purpose. That means you’ve got two different MANIFEST.MF files… which IDEA supports in theory. (Guy having this problem and solving it…)

Well… actually you only need to create two of those MANIFEST files and then make each Artifact use the right one… This works in theory, and this is how my Artifact manifest properties look like:

What the artifacts do, or should do, is take the list of files and archieves and search for MANIFEST.MF files there. If it finds multiple manifest files, it should take the one which is the first on the list (therefore there are arrows). Unfortunately this doesn’t work…
It only works, when I name the folder “META-INF”, but how should I place two manifest files in there then, which both need to have the name MANIFEST.MF? I’ve tried creating two manifests like this: “server/META-INF/MANIFEST.MF” and “client/META-INF/MANIFEST.MF” and linking them, but this didn’t work again.

The “IntelliJ IDEA 12.0 Web Help” tells me how that Dialog should look like:
http://www.jetbrains.com/idea/webhelp/output-layout-tab.html#manifestFile

Everything is okey there: Option “Manifest File:”, “Main Class”, “Class Path” etc… but whats up with “Create Manifest” and “Use Existing manifest”?
(I should note here, that the “Manifest File” Text field is not modifiable…)

I have checked it: IntelliJ IDEA 12.0.4 …

Either I am completely blind, stupid, or I think there is something wrong…

It would be awesome if anyone could tell me how to fix this problem. Or at least point me to the position where I find the button “Use Existing Manifest” :confused:

[quote=“Nate,post:51,topic:41198”]
IDEA uses JDK7’s WatchService since version 12, so mostly no. You can even change the project metadata files and it will pick-up the changes. Exceptions:

  • A project reload is required when you change the project language level (e.g. switching from JDK7 to JDK8 lambdas), but that’s very rare.
  • A restart is required when enabling/disabling plugins and when invalidating the caches (also rare).
  • A manual “Refresh File Status” action is required if you happen to do VCS actions outside the IDE.

[quote=“matheus23,post:52,topic:41198”]
Remove the existing manifest folder under RuinsOfRevenge.jar. Then click on RuinsOfRevenge.jar and the Create/Use Existing Manifest buttons will appear.

Thank you very much! This solved the issue.

Its about time that a new IDE to fix all issues in the world rose from the ashes actually. I don’t want to flock to IDEA, its old and stupid like all old and stupid software is by default. I need a new name so I can ridicule others for not using it yet. Until then I’ll just stick with Eclipse and silently ignore/work around the few retarded things it, or one of its plugins, has.

Well, uh, more power to you then?

Eclipse reminds me of Lotus Notes: an amazing platform stuffed with great technology, someone should just write a decent IDE that runs on top of it (much as I would say someone should write a decent mail app for Notes). Come to think, the current version of Notes runs on the Eclipse platform…

IntelliJ has long been my favorite IDE for Java and especially Java/Maven work.

I just downgraded from IntelliJ Ultimate 11 to the free community edition of IntelliJ 12 and I’m shocked that I am not missing any features. The only major missing feature from the free version is JavaScript functionality. You can write JavaScript with the community edition, but you miss out on all the nice IDE features.

The official Scala IDE from typesafe is an Eclipse plugin, so for my Scala work, I use that. IntelliJ has decent Scala support, but without recalling specifics, I like the official Scala IDE better and haven’t had a reason to move back.

Yarrrr.

Don’t take me too seriously, I look upon the movement of IT people from software to software as something amusing :slight_smile: Whatever you use, it is never REALLY better. But you feel that way at least for a while. So… more power to the people that still attempt it.

IntelliJ is amazing. I was forced to use it at work and after only a couple of hours I was a convert. The code inspections are awesome, most of the time. I’ve switched to using it at home too. Coding late at night, with many distractions and interruptions is difficult and my personal code is far below the standard of my work code, but IntelliJ helps a lot.