intellij-idea

IntelliJ: How to auto-highlight variables like in Eclipse

My employer wants me to use IntelliJ for Java development. Previously, I've always used eclipse. One of my favorite features in eclipse was being able to click on a variable, method parameter, class field, etc and see the usage of those variables highlighted throughout the class. Is there a way to enable this feature in IntelliJ IDEA? ...

Add a properties file to intelliJ's classpath

I feel like a schmuck for asking this, but I'm tired of guessing. I'm running a simple java program from the IntelliJ IDE using the Run->Run menu. No problem, it works fine. Now I want to add log4j logging. I added a resources folder under my project root. I added a log4j.properties file in that folder. I changed the code to log some...

How to get IntelliJ From making annoying blue popups?

On Mac OSX running the latest JDK, my IntelliJ 9.0.3 pops up these incredibly annoying and persistent windows: This stuff compiles and runs fine, the JDK is definitely operational on this machine. It should be a java.util.string, not some other apache string. what is this supposed to be, and how do i get rid of it? Thanks! ...

Explicit and safe git pull in Intellij IDEA

Is it possible to do "git pull" safely in Intellij IDEA 9? Now I am using Git -> Pull Changes... and then I have to select branch explicitly - this is source of error if I pull from not current branch by error. This is completely unsafe. I wonder if there is a safer way to do "git pull" in IDEA through standard UI. Use git pull in comm...

How to create a PHP project with IntelliJ Idea 9?

I can't find how to create PHP project with IntelliJ Idea 9. It only offers "Java module" and "Maven module" to choose when creating a project. PHP plugin is installed, but how to employ it? ...

In IntelliJ, how do i debug a maven test goal?

Using intellij and maven pom files, how do i debug tests run inside the maven test goal? When i run them directly in the code, it complains something about profiles missing, which i've ticked inside intellij's Maven Projects. ...

How to separate spring contexts in intelliJ IDEA

Hi! I have a problem configuring IntelliJ IDEA for developing spring and maven powered application. App has two separate spring configurations for production and test purposes. In spring facet props in IDEA I created two different file sets but when configuring one of contexts IDEA shows variants for both ones in code completion. How c...

IntelliJ IDEA Scala plugin turning off

I'm using Scala plugin for IntelliJ IDEA and my project has a few thousands lines of source code. Unfortunatelly, when I'm typing the code IDE freezes frequently(i.e. on code completion etc.). I tried to switch off inspection, but there was no effect. Is there a way to turning off all plugin's features for using it just as syntax highl...

Multiple testng.xmls in the same IntelliJ run configuration?

I have a project that has two different modules each with its own set of testng tests. I have separate run config's with code coverage enabled for each. I need to run both to gather coverage statistics and was wondering if there was a way to consolidate the coverage data in to a single session. Is it possible to create a run configura...

How to add Jar libraries to an IntelliJ Idea SBT Scala project?

I've created an IntelliJ Idea SBT Scala project like Heiko Seeberger's article describes. I'd like to add a Jar library (joda-time) to use in this project. How to do this? Simply putting them into project's /lib does not help. If I right-click "External libraries" in Idea's project tree, "New >" is greyed. ...

Specifying request body in REST client in Intellij IDEA

Hi I need to know is there a way to specify request body in IDEA's REST client. Can't find appropriate field for it. Thanks. ...

IntelliJ, Glassfish, JRebel - Slow deploys and jsps/tags require redeploy

I am developing a J2EE application using IntelliJ and deploying to Glassfish. I am also using JRebel which hasn't seemed to help reduce the need to redeploy. Changes to JPA entities still requires redeploying as do changes to JSPs or Tags. What configuration options in either IntelliJ, Glassfish, or JRebel should I be looking into so t...

What is the best stable hudson integration plugin for IntelliJ?

I observed that there are 3 plugins that are aiming to provide hudson integration in IntelliJ IDEA. What is the better one and why? ...

Does eclipse have a debugger "step into selected" option that prompts for the method to step into?

I have used IntelliJ Idea on a few projects and I really like the feature it has in the debugger where I can step into a line of code, but choose which of the methods I REALLY want to step into, instead of going through them all until I hit the one I want. For example, the debugger stops at this line: String restult = getMyResult(getPa...

Reloading Tapestry layout and other components in development?

How can I make changes to tml files - like for layout and other components - quickly visible via F5 in the browser? At the moment I keep those files under the src/main/-folder next to the java class. I already tried to 'repackage' the file but it isn't picked up by Tapestry - it only works for tmls under /webapps. PS: Using IntelliJ wit...

Clone private Mercurial repository on bitbucket.org into InetlliJ IDEA with hg4idea plugin?

I created private repository on bitbucket.org. I want to use it from IntelliJ IDEA. I choose "Check out from Version Control" and there is message box with field Mercurial Repository URL and Test Repository button. What should I enter into Mercurial Repository URL? I tried http://bitbucket.org/my_user_name/my_repo_name, https://, a...

How to format code with IntelliJ?

I know, it sounds really stupid, but I don't seem to be able to format my code in IntelliJ. I can see the margin line (by default at 120 columns) but it seems that the formatter (activated from the menu Code -> Reformat Code) is just ignoring this margin. I'm quite new to IntelliJ so probably I'm just missing something trivial. It's qui...

Can I automatically refactor an entire java project and rename uppercase method parameters to lowercase?

I'm working in a java project where a big part of the code was written with a formatting style that I don't like (and is also non standard), namely all method parameters are in uppercase (and also all local variables). On IntellJ I am able to use "Analyze -> Inspect Code" and actually find all occurrences of uppercase method parameters ...

I cannot add web module to IntellIj 9 Ultimate

I wanted to add a JSP to my project and I think this is most conveniently done by adding a web module. Unfortunately when I do File->New Module the only types available are Java Module and Android Module. I have tried turning on all likely plug-ins but no Web (or other module type, except Android) Module type appears. Help About says ...

Is there an easier way to specify javadoc urls in intellij?

I have multiple modules in an IntelliJ project where each module's dependencies are managed by ivy. My problem is that for every single module, I have to specify the javadoc url of common 3rd party libraries through these tedious actions: Pick up the mouse Find the library's javadoc in google Right click on the module and select Modu...