From Eclipse to IntelliJ - eclipse

I know some (crazy) people want to move from IntelliJ to Eclipse. On my side, I am moving the "normal way", i.e. from Eclipse 3.3 to IntelliJ 8.0.1
I really like it, but I am a little lost sometimes.
Do you know any specific IntelliJ guide or tutorial created specifically for Eclipse users?
For example, after some tests, I missed some options usefull on Eclipse (I don't say they don't exist in IntelliJ, I just say that I didn't find them !):
Automatic insert at the correct position of the ';' character
Actions made on save (format, reorganize and clean imports)...

Check this FAQ in the Jetbrains home page: link. It is not a guide or tutorial, but it goes through some basic concepts that Eclipse users should accustom themselves with when they move.

For automatically inserting ';' at the correct position (as well as braces) the last time I've looked (probably Idea 6, maybe 7) it didn't exist. My colleagues always wonder why I insert ';' in stupid places when I'm pairing with them. I told them to notify me when this feature becomes available in Idea, but until now they didn't.
There's the two topmost related questions (see right column) covering "Things possible in A that aren't possible in B" for both directions - you might find ideas there as well as in the comments to the answers where people tell you what to alternatively do.
Edit (maybe this is better here than in the comments);
...it seems to be somewhat possible. See the comment to my answer to the related question: . One could argue that CTRL-SHIFT-ENTER is less intuitive than ';', but in Idea you get used to type a lot more of such shortcuts than in eclipse... This comes closest to the functionality you asked for. Hope it helps...

Related

Zoom in/out with Ctrl+ / Ctrl- not working in Eclipse

In Eclipse, it seems like all the keyboard shortcuts work, except for those that zoom in/out. (I'm on Windows and using Eclipse Version "Kepler Service Release 2") I have already restored the default keys in my preferences as other StackOverflow posts have advised, but it still doesn't work. Does anyone know why? Thanks!
I'll provide an answer, but you haven't really provided enough information for anyone to be confident that they are fully dealing with your problem.
It would still be useful to know what version of Eclipse you're using.
The first thing to do, is determine exactly what the binding is for the "Zoom In" and "Zoom Out" commands, by looking in the "Keys" section in Preferences. It's easiest to type "zoom" in the filter field to limit the table to those functions. I imagine you've already effectively done this, but it is a prerequisite.
The next thing to do is look for conflicts. There are two ways to look for this. First, check the Eclipse log. It will note if there is a keybinding conflict. Second, in that same "Keys" list, remove "zoom" from the filter (if it was there) and click on the "Binding" header to sort by the key sequence. Then page through the list until you find "Ctrl++" and "Ctrl+-" in the list, which I assume are the bindings you have. What you want to check for is if there is another binding in that list where "Ctrl++" BEGINS the key sequence, and is longer than that. Do the same for "Ctrl+-".
If you still don't find any clues from this, I suppose it's possible there's something else you have installed in Windows that is capturing that key sequence. I don't know how you would check for that.

Turning off Eclipse's guidance

So basically I want to drive myself crazy while disciplining myself learning to program. I want to kick it old school and really understand what I'm doing. I don't want Eclipse to hold my hand and tell me that I have a syntax error or that I have any errors except for when I run my code and the console tells me something is wrong. I have searched and searched and searched online and I cannot find where you disable anything. I've been to the editor/compiler preferences and changed everything to ignore instead of warning, but eclipse is still holding my hand.
I'm using Eclipse Luna for Java. Any suggestions or help at all would be greatly appreciated!!!
The closest I think you'll get is to disable the automatic, incremental compilation (menu Project > Build Automatically). But that doesn't disable the Java editor's natural tendency to highlight obvious syntactical errors as you type.
To be honest, if you really want to avoid all of the guidance that an IDE like Eclipse gives you, you'd probably be better off using a "plain" text editor (possibly with simple syntax coloring), such as TextPad or Notepad++, along with command-line javac. But I don't think that will actually help you learn better; it certainly doesn't help with the exploratory/discovery part of learning.

Getting method help, while using Eclipse Pydev

I wonder, using Eclipse's PyDev plugin, how come documentation does not always show up?
Compared with
Is there a way to set Eclipse to "always show modules available along with the help attached"?
The problem is that depending on each context, the PyDev type inference engine may know or not what you're talking about... In the first situation it knows you're dealing with a string and thus can show you things properly. In the second, word is probably some parameter, so, it can't really find swapcase properly -- although it should work if you did an assert isinstance(word, str).

Learning Eclipse MDT-UML2 Sequence Diagrams

Are there any tutorials or documentation files for drawing Sequence Diagrams with Eclipse MDT-UML2?
I can't put a Lifeline on the page. It took me 10 minutes to figure out that I first have to make a big Iteraction, and then I can put Lifelines into it.
I can't figure out how to make the Participant box wider in the lifeline. Any name more than 4 characters is too wide for the box. When I do the obvious thing of clicking and dragging the handles, the box springs back to its original size.
I can add a Message by clicking "Message" in the pallette and click-dragging an arrow from line Lifeline to another. Now I have an arrow labeled "1: *". I've tried every way I can think of to change that name: double-clicking on it, shift-clicking, ctrl-clicking, changing Name in the properties.
Can anyone help?
As I understand it MDT-UML2 is in the very early stages, it may not work as it should always. Additionally, the sequence diagram is a newer one, see below. There were no tutorial I could find, but I did link to samples below. I also found a comment in the eclipse bug tracker for this feature:
Here are the most important issues from my side: moving of lifelines, create messages,
replies are causing strange behaviour (some kind of auto alignment). Moreover it
should be possible to give the messages names.
They say it is resolved, but you be the judge.
From the wiki (Note:What you want is UML2 Tools):
http://wiki.eclipse.org/MDT-UML2Tools
Interaction diagrams (in progress):
Sequence (new in Galileo)
This may not help, but here is a link to the samples: http://wiki.eclipse.org/images/3/3a/UML2Tools_samples.psf
The tutorial reference does not seem to cover the new stuff, just the class diagram.
http://www.vogella.de/articles/UML/article.html
Search stackoverflow for other open source tools to use. The MDT-UML2 is coming along and can be used for some stuff, especially simple DSMs/DSLs/UML Profiles, but for drawing easily there are a host of good tools. An ok thread: What's the best UML diagramming tool? or
https://stackoverflow.com/questions/390438/good-free-uml-tool-for-java-eclipse

Eclipse: stack or pile for cut & copy & paste?

im just wondering as I couldn't find an answer on google (well, maybe Ive been trying the wrong keywords here >.< )...
A thing I've always dreamt about was a stack/pile cut feature which remembers the - uhm, lets say - 10 last things I've cut out or copied for pasting... Is there such a feature and if so, what is it called?
furthermore - is there a possibility to include your own suggestions for autocompletion? I'm not asking for much, just e.g. a while(true) suggestion instead of or extending the default ones...
Probably this should be migrated to superuser, but Im quite uncertain as this is somehow more programming related...
Thanks ever so much :-)
OK, the first part of the question I could answer myself:
there are templates (Prefs -> Java (or whatever) -> Editor -> Templates) where you can add your custom tags :-) quite fancy this one! (always wanted to type "forever" and get a for(;;) loop)...
so, I did some digging and found that some people refer to that kind of feature as a paste stack...
for windows users clipX will do the trick for general use (as well as in an IDE). for the use in eclipse only the best I could come up with is ViPlugIn which enables a Vim-styled cut, copy & paste feature which gives you some registers where you can store your "pastries" :-)
unfortunately this doesn't come for free (it's 20USD) - will work (AFAIK) without a license but you will be prompted a "missing license" each time you start up eclipse...
The first feature you've meantioned is often called "Multiple Clipboards." I've found two plugins that do the job, but didn't like either. (IIRC neither could interact both ways with the system clipboard.)