intellij-idea

switching from Eclipse to IntelliJ for Groovy/Grails dev

Hi, I'll be switching from Eclipse to IntelliJ, as I'll be doing some Grails dev soon (and the Groovy/Grails plugins for Eclipse suck). I've been using IntelliJ for a few hours and can't really figure out how to use it effectively. Is there some kind of an Eclipse mode, which makes it behave similarly to Eclipse, or some kind of a tuto...

how to add directory to classpath in an application run profile in intellij idea?

I'm trying to add a directory to the classpath of an application run profile If I override by using -cp x:target/classes in the VM settings, I get the following error: java.lang.NoClassDefFoundError: com/intellij/rt/execution/application/AppMain Any idea on how to add a directory to the classpath for my project? Thanks ...

IntelliJ Groovy version

Hi, I'm in the process of upgrading a project to Groovy v1.6. When I installed IntelliJ my GROOVY_HOME env. var. was pointing to Groovy v1.5.7, but now that I've changed GROOVY_HOME to point to v1.6, it's not clear whether IntelliJ is also using the more recent version. How can I check which version of Groovy IntelliJ is using? Thanks...

'Exiting' (ctrl+c) a process from console - Eclipse vs Intellij

It seems that in Eclipse, if you want to send ctrl+c to a process you cant. The terminate button on the console just kills the running process without running the shutdown hooks. I know that java itself doesnt allow sending a signal to another process. However it seems that intellij idea does have a 'exit' button next to its 'stop' butt...

open file without mouse, intellij idea 8.1

The title says it all :) Is there some easy way to open a file (that is not in the project) with the keyboard only? Its driving me nuts.. ...

Porting a tomcat web project from eclipse ganymede to intellij 8.1

I have a standard (I think) web project developed with the eclipse IDE. I wish to port it to Intellij idea 8.1 - I think that, among other things, it has better taglib support. My project structure is as follows: Project Folder ./src [java source files etc.] ./conf [configuration files - log4j, spring beans...] ./buid [ant files] ./We...

Setup Grails 1.1 app with plugin dependencies in IntelliJ

Hi, I'm using IntelliJ 8.1.2 on Windows to develop a Grails 1.1 project that depends on internally developed plugins which are not available in the central Grails plugin repo. In Grails 1.1 the default location of installed plugins was moved from $PROJECT_ROOT/plugins to $HOME/.grails/1.1/$PROJECT/plugins Using the command-line, I've i...

IntelliJ not recognising JDK version

I have write one java project on IntelliJ idea 8.1.1.When I go to compile option of IntelliJ IDEA 8.1.1 then it shows pop-up message box, in that it shows error- cannot determine version for JDK Update JDK configuration. Even though I have proper JDK version, I have jdk1.5.0 installed in my PC working properly with other environm...

How to test a intellij plugin

Documentation on Intellij plugin development is scarce. If you have written any Intellij plugin, how did you write tests for plugin? Any pointer to documentation or source code is appreciated. ...

Is there "Break on Exception" in IntelliJ?

Hi, Is there feature that will automatically break debugging on first exception occurrence? So we start application do something that throw exception got IntelliJ popped up highlighted line where exception occurred. ...

Ctrl-tab in IntelliJ IDEA

Can I configure IntelliJ on Windows to use Ctrl-Tab for switching between files? Googling finds this old thread that says "no". ...

Intellij reformat on file save

I remember seeing in either IntelliJ or Eclipse the setting to reformat (cleanup) files whenever they are saved. How do I find it (didn't find it in the settings) ...

"Create Field for Parameter" Intention in IntelliJ only applies to one parameter?!

How do I get the intention "Create Field for Parameter" in IntelliJ to apply to all the parameters in a call instead of having to press through the list of keypresses for each and every parameter? I have lots of calls with 10+ parameters that I get tired of having to do one by one and it would really help to be able to just have Intelli...

Ordering of elements in "Alt+Enter" - completion menu in IntelliJ?!

How do I change the order of elements in the Auto-completion "Alt+Enter" menu in IntelliJ? Right now "Quick Fixes" are sorted before "Intentions" and I would like to configure it the other way around. Is this possible? ...

IDE integration with GIT

We're considering migrating from CVS to GIT. Our whole development process is centered around IntelliJ, and the plugin we've found (GIT4idea) is severely lacking. Essential features, like global history logs or diff changes are completely missing. Are there any other alternatives in IntelliJ land? And, if not, which current Java IDE do ...

Avoiding Groovy/Grails internals while debugging in IntelliJ Idea

I'm using IntelliJ Idea 8.1.2 for Grails development. The dynamic nature of Groovy is giving me a hard time debugging my code: I keep ending up in the internals of Groovy/Grails, i.e. CachedMethod, ExpandoMetaClass or the like. Is there a way for example to tell the Idea debugger to completely skip the Groovy/Grails internals while debu...

Hibernate error: cannot resolve table

I'm trying to make work the example from hibernate reference. I've got simple table Pupil with id, name and age fields. I've created correct (as I think) java-class for it according to all java-beans rules. I've created configuration file - hibernate.cfg.xml, just like in the example from reference. I've created hibernate mapping for...

No Runnable methods Error From Base Test class

I have a A few base test classes that setup common configurations for spring,logging,jndi etc using test execution listeners that are then inherited by subclasses. This is done so tests can just run code without having to worry about getting jndi and logging services in place before being able to run testing code. Using intellij and inv...

Eclipse and clip board

In Eclipse is there a provision to copy multiple items and then paste the items selectively from the clip board? IntelliJ has this feature and I used to find it very useful. Does Eclipse have this and if so what is the key board short cut to view items in the clip board? ...

How can I add JMenuBars,JMenus and JMenuItems using IntelliJ's Swing GUI Designer?

I can't find the components specified in the title anywhere in IntelliJ's Palette. I notice that the form has a JMenuBar, but I don't see it, and I don't know how to access it. Is there any way of using these components visually? ...