intellij-idea

comparison of intellij vs springs grails IDE

What does intellij do that other IDEs dont vis-a-vis grails? Im trying to decide whether I should renew my license when it comes time.... thanx... ...

SQL validation in IntelliJ IDEA: How to turn it off?

Does anyone know how I turn off the SQL validation in Intellij IDEA 9? We often have more than one connection to a different type of database within one class. IntelliJ only allows one SQL dialect per class, resulting in what IntelliJ thinks are errors, so litters my code with red lines. Ideally I'd just like to turn the errors off co...

Running particular named junit 4.8 tests in intellij

I am using junit 4.8 and intellij 8 and i would like to only run tests inside the IDE which are named something like *UnitTest.java. How can this be achieved? ...

Defining Clojure -main function in IntelliJ

I need some very basic advice on how to define a working -main function in IntelliJ along the lines of: (ns clojure.examples.hello (:gen-class)) (defn -main [greetee] (println (str "Hello " greetee "!"))) When I create a project, paste the preceding code in a source file, and set the run configuration (with Script path, modul...

Finding out order of bean creation in the spring IOC

How can i find out in what order my beans were created? +1 for anyone who can recommend a tool to display it visually. ...

IntelliJ and Git Branch Name

I've recently moved from Eclipse to IntelliJ. A challenge as I'm a keyboard shortcut junkie, but that isn't what I'm here about. I miss having the git branch name shown in the package/project view. Does anyone know of a way to configure IntelliJ to display what git branch the project is in, so I don't have to keep switching back to t...

How do I set up IntelliJ on dual monitors?

I have just installed IntelliJ 9.0.2 on a machine running 64-bit Ubuntu 10.04. How do I get another window to put on my second screen? I would like to have both an editor and some tool windows on both screens. ...

How do I make Intellij stop removing Grails inline plugin module dependencies?

I am developing a Grails application along with a Grails plugin used by that application. In Intellij, I have defined two modules: one for the application, and one for the plugin. In my application's BuildConfig.groovy, I have defined the plugin dependency as a maven dependency, because when it is built/deployed to the production server,...

Using IDEA with maven2, how to add a non-maven .jar?

I have a .jar that I want included in my IDEA web application project that is using maven2 (pom.xml). How can I add a .jar to my project that isn't using maven? ...

Is there emacs-like incremental search in IntelliJ IDEA?

I miss the emacs behavior for incremental search. In emacs, we can do this: C-s key in search text, i.e. "button" The first occurance of button will be found. If you continue to press C-s, the next occurance will be found. It seems to me that IntelliJ is close to this, except that you need to press a different keystroke ...

How to add (existing/new) database to Intellij IDEA?

Adding database in NetBeans or Eclipse is very simple. In IDEA I don't see appropriate tools (data sources window doesn't seem to be suitable for this). ...

Why does Scala compile fail on large Java/Scala project in IntelliJ?

I have an IntelliJ project with eight modules and roughly 500 KLines of Java. I added a Scala Facet to a module that depends on all the other modules. When compiling HelloWorld.scala in IntelliJ IDEA 9.0.2: object HelloWorld { def main(args: Array[String]) { println("Hello World!") } } I got the following output in the Messa...

intellij 9 auto scroll to source

Has anyone noticed that intellij 9 broke the auto scroll to source feature? it doesnt work 50% of the time. Does anyone have a fix? ...

name attribute in bean for sessionFactory is in 'red' in IDEA i.e. cannot resolve property

My app-config.xml looks like: <!-- Hibernate SessionFactory --> <bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"> <property name="dataSource" ref="dataSource"/> <!--<property name="configL...

How to toggle commenting and uncommeting code in IDEA?

Is there a way to comment/uncomment a block of selected text in IDEA? ...

Writing Intelli-J inspections?

How would I go about writing my own Intelli-J inspection? I'm looking for some general guides or resources. I want to bring up an inspection hint every time a collection class is instantiated manually, rather than through the Guava (List.newArrayList()/Maps.newHashMap()) etc. as per a team-wide standard. I'd appreciate any direction. ...

Enabling ExtJS code completion with IntelliJ IDEA

Hi, How do I enable auto-complete/code completion feature of IntelliJ IDEA to work with ExtJS javascript library? Thanks ...

Exclude section in page from IntelliJ code formatting

Hello, Is there any possible way to have IntelliJ -not- format part of a page? I'm using XHTML and facelets but this could apply to any page. I'm also curious if it's possible to do that in code, though that's not as important to me as excluding pat of a page. Thanks. ...

Problem creating an executable jar from scala file.

I'm tryign to export my project as a jar with IntelliJ 9.0. My project compiles and runs with no problem in Intellij, but when I write it to a .jar and open it, it will show an error. My Main class is something like: package Main //Imports object Main{ def main(args: Array[String]) { println("Main: Hello, world!") //do stuf...

Intelli-J structural search and replace problems...

Is there an easy way to capture types? I can't seem to do basic things like use variable expressions side by side, such as $mapType$$mapEnd$ to do a simple replacement. Is there any reason this might be? That is, if I have a single expression, say .*\s*.*abc, and I break it into two variables, .*\s* and .*abc, the expression does not mat...