FAQ Database Discussion Community

Possible to change the colour of the indentation guide lines per indentation level?

I can change the indentation guide line colour as shown in this image (the green lines): I'd like to have the colour be different per indentation level, to help with code inspection and reading. Similar to this poor edit. Alternatively if it was per scope that'd be even better, i.e....

IntelliJ correctly using Libraries

I'm using IntelliJ without a build tool for a project, I build it as a jar. Now I'm using the iText library for PDF(s), if I put all the iText jars into a folder and add it in IntelliJ, I can use the iText functions and if the program works,...

Best to use Android Studio or Intellij Idea wth plugins?

We have an existing java code base where we use intellij idea for development. We are building an android application where we will be sharing code and other resources with the pre-existing code and resource base. As Android Studio seems mainly to be a modified version of Intellij my question...

Red squiggly line in Maven dependency list in IntelliJ - where do I start debugging?

I'm getting a red squiggly line under the maven dependency to play-services-maps, a library that is installed locally with the M2 repository coming with the Android SDK. I've configured it correcly as a local repository in maven. The dependency is resolved when I look at the XML file, but the...

Java - duplicate case label

I found some time ago a function to replace polish characters in text with "normal" version of this character. I used this in some projects earlier without problems, but now, when i just copied it, this doesn't want to work. But when I try to compile old projects in the...

Unable to run Application.groovy from IntelliJ IDEA

I have a new grails 3 project that I created using the grails create-app command. When I try to run Application.main() from IntelliJ IDEA I get the following error Exception in thread "main" java.lang.ExceptionInInitializerError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:122) Caused by: java.lang.NullPointerException at grails.dev.Support.enableAgentIfNotPresent(Support.groovy:54) at...

IntelliJ autocomplete to replace the function name

I've switched from Eclipse to IntelliJ and there is something which I couldn't find yet nor google: How to get the autocomplete to replace the name of the function? In Eclipse, it would be the ctrl+enter functionality. For example, userController.setAmount(); suppose I would like not to call the setAmount() but...

Exclude folder from Analyze > Run Inspection by Name

Is it possible to exclude a folder when I want to analyze the code in IntelliJ IDEA? Usage example: Analyze > Run Inspection by Name... > Missorted modifiers It founds a lot of results, but some of them are from folders that contain generated Java files. I want to exclude...

Doesn't work debug for play project in IDEA 14 Ultimate

I do following steps: Import to IDEA Play project generated with Activator UI from Play Scala Seed template. Create Run/Debug configuragion using standart "Play 2 App" template. Add break point in my project. Run debug and open page in a browser. I can see in IDE console "play - Application...

How to create a JavaFX Maven project in IntelliJ IDEA?

How can I open a JavaFX Maven project from scratch in IntelliJ IDEA? As there is no difference between a Java project and a JavaFx project, I want to open a dedicated JavaFX project (Selection JavaFX from create project Wizard) with Maven module included.

Why IDEA shows java files as invalid in my Android project?

I am trying to build apk from this repository. I have problem: idea show .java files as invalid, you can see it on this pic: What am I doing? I download mentioned (git) sources and copy sources to some directory I open this directory from IDEA as directory In project...

IntelliJ command line compiler

I'm searching for an automated way to collect all the IntelliJ static code analysis warnings (compiler and inspections) without having to run a UI and click on buttons. Ideally I'd like run the IntelliJ compiler from the command line and have it log all warnings into a file. Is this...

How can I change the javadoc class comment template in IntelliJ?

When I create a new Class the following javadoc comment is added /** * Created by Dieter on 31.05.2015. */ public class Calculator { } } The Problem here is that my name is not Dieter :D (yes, it is the (first)name of the OS-User). I am looking for the...

Intellij IDEA long processing for grails app with warning “too much output to process”

I new to Intellij for Grails app while run the app it execute lot of thing with the warning "Too much output to process" & takes comparatively more time to start the server. Below is the log screen (AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at...

Android Studio Migrate Project

I created a test project inside of Android Studio and then I used following: VCS -> Enable Version Control Integration -> Git -> Ok, then via Project -> Android -> app, I selected Git -> Add & Commit Directory. And on another computer with Android Studio installed, I did following:...

Intellij Idea project checkout

Okay, so I checked out a Git project into Intellij via VCS - Checkout from Version Control - Git. I see the code checked out and repository cloned at the Parent Directory under the Directory name I give. However, when I open this project in Intellij, it does not show...

IntelliJ idea support for React.js

I am currently using a licensed copy of IntelliJ idea 13.1. It doesn't seem to support React.js files. I tried downloading intellij Idea 14.1, even this is not supporting React.js. Is webstorm the only Idea IDE which supports React.js? I am using groovy on grails, java along with react.js, but...

Insert Getter / Setter at end of file with IntelliJ IDEA (Java) [duplicate]

This question is an exact duplicate of: Intellij IDEA - Generate (Alt + Insert) 2 answers When I generate Getter and Setter using IntelliJ IDEA with Alt + Insert --> Getter and Setter, they are inserted above my cursor. Is there a way to make IntelliJ insert them at...

Scala: Setting programatically a break-point to be recognized by IntelliJ

In Visual Studio / C# I can easily set programatically a break-point. Is there any similar feature available for IntelliJ/Scala-Plugin and the Scala language ? To clarify: In C# you can call an API function System.Diagnostics.Debugger.Break(); and then the Debugger in VS stops like with any breakpoint, set in the...

What is the difference between “app” and “app$” in Intellij?

I am using Intellij to develop Scala program. When click run, it displays two applications:HelloWorld and HelloWorld$: What is the difference between the 2 applications?...

IntelliJ IDEA - Syntax Highlighting of SQL Inside Java Code

I am using IntelliJ 13 as an IDE for a project where communication with DB is done via Spring's JDBC Template. When I have code fragments in Java like the following one: getJdbcTemplate().queryForObject("SELECT CONVERT(VARCHAR(255), NEWID())", String.class); where getJdbcTemplate() returns initialized JdbcTemplate object, the IDE has proper syntax highlighting for the...

CSS to conf/messages in play framework

I have messages under conf directory of play framework. required.message=This field cannot be empty And in the model, I have: @Constraints.Required(message = "required.message") public String name; I am getting the messages properly on validation. What I want to do is, change the color of the messages. Currently I am getting...

Intellij JAVA_HOME variable

I started using Gradle and Intellij but I am having problems to configure Gradle's JVM. When I start a new Gradle project I am not allowed to define JVM as my JAVA_HOME variable. The following screenshots show what is happening: As you can see Intellij says that my JAVA_HOME variable...

Javac not compiling, caching old file, maybe?

Windows 7 x64 Bad problem description I know, but it's really hard to explain. Basically I was trying to make some tweaks to an old program in IntelliJ after recently reformatting Windows and reinstalling java and all that jazz. No matter what I changed in the program, the output wasn't...

IntelliJ: Is there an Intention Action to convert old style Log4J calls to new style SLF4J calls?

I am working on a project with legacy code that had used Log4J in the past, and now uses SLF4J. Most of the old style Log4J logging statements remain, and I convert the log statements slowly to the new SLF4J style as I come across them. I've just realised that...

Why Intellij deletes obsolete files when trying to run DevMode?

I'm currently working on a GWT project in my company. Although DevMode works perfectly fine in eclipse, I still want to use Intellij Ultimate Edition for development. But after all setups were done (Facet, Run/Debug configuration) I'm getting this weird processing window saying "Deleting Obsolete Files..." when I run the...

Intellij14 and “Please Provide Missing Values dialog box”

I'm trying to run simple SQL scripts with type casting on a PostgreSQL db via IntelliJ 14. I have problem with type casting. E.g., consider the following trivial query: select '100'::INT; Everytime the following annoying panel appears: Clearly, the message "Please Provide Missing Values..." drives me crazy, since INT is...

NullPointerException URLImageSource.getConnection(URLImageSource

i'm programming a project in IntelliJ IDEA on my Mac OSX. Everything works just fine when i run the code or when i export the jar and run it. But when i switch to windows, i get an error saying this: java.lang.NullPointerException at sun.awt.image.URLImageSource.getConnection(URLImageSource.java:116) at sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:126) at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:263) at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:205)...

JavaFX: Artifact displays empty window only

Preface: I am pretty new to JavaFX Made an simple image resizing application and need to build an artifact of the application. Using IntelliJ and Eclipse (tried both), i built normal JAR artifacts and JavaFX artifacts. Both are executable, but only show an empty window. When starting the application out...

Intellij project opening directory above project

I feel kind of silly asking this but I've been poking around and I don't know what is causing it. I have a directory structure that has a number of projects in it, it looks like this: projects_root/project1 projects_root/project2 projects_root/project3 When I open any of these projects with Intellij it...

IntelliJ/Webstorm not finding import reference

I have the following project structure: root src scripts main.js foo.js Inside of my main.js file, I'm importing foo.js like so: import 'src/scripts/foo.js' When I click on the import statement above and go to Navigate -> Declaration I get a super helpful message that says Cannot find declaration to go....

How can IntelliJ refactor class constants to an external class?

I have a series of 30 or so private class constants declared and used in Fragment.java. I want to refactor the declarations into public declarations in Constants.java such that all occurrences of VARIABLE_NAME in Fragment.java are replaced with Constants.VARIABLE_NAME Tips appreciated on how to use this. I am using Android...

Add project on outer level as dependency to module

I have a project that looks something like this: mainProject/ mainModule proj1/ module1 proj2/ module2 and what I'm trying to do is add proj1 and proj2 as dependencies to mainProject. I've gotten it to the point where I can import classes from the projects and everything seems to work fine...

Breakpoint “concurrency” in Intellij

Lets say I have a class that initiates two threads Thread_A and Thread_B, each doing some calculations and ocassionally using a subroutine of my the class. (don't worry about data sharing, lets say it's a log line or imagine the subroutine is a method in a Java library) I want...

Intellij isn't catching non-exhaustive matches that use functions as guards

I found this block of code in our codebase: val appId: (String, Option[String]) = request.app match { case Some(app) if hasAppId(app) => (Constants.AppId, app.id) case None => (Constants.AppId, None) } hasAppId returns a boolean. Clearly this match is non-exhaustive, but there's no compiler warning for it. If I change the...

How to run mvn jetty server with reset endpoints from within IntelliJ for debugging?

Project Description I have a maven 3 project that runs java 8 exposing REST endpoints and runs on jetty and I use intellij v14.1.3 for an IDE Current debugging method For debugging (stepping through code) I have to create a remote localhost:8000 config within Intellij and set it to...

Unexpected top level exception: bad class file magic, in Android

I am trying to compile my android program via command line, using ANT. And the code compiles fine. But when the target -dex is executed, I get the following error: [dex] input: /Users/aditya/Desktop/workspace/Java/Play/bin/classes [dex] input: /Library/Java/Android/tools/support/annotations.jar [dex] Using Pre-Dexed annotations-5bd0afe28d834ceff67df1063f0f145b.jar <- /Library/Java/Android/tools/support/annotations.jar [dex] Converting compiled files and external libraries into...

spring boot switching from in-memory database to persistent database

I have developed my web-application using spring-boot and spring-data-jpa and and in-memory database, and I have a couple questions: how can i now switch to a persistent, let's say, MySQL database? What do I have to change in my configuration? Can spring-boot set a database up for me with a...

Removing warning messages on IntelliJ IDEA while building Java project

I am using IntelliJ IDEA Community Edition for the first time and using Maven to set up a TDD environment. The code that I am trying to test and the warning messages I had encountered along with the project structure are provided below. Project Structure: Code: package miscellaneous; import org.junit.Test;...

Intellij remote tomcat print to console

I'm learning java webdevelopment and I'm using tomcat 7. I set everything up so that I can remotely debug (breakspoints seem to work) my deployment on a remote tomcat server using IntelliJ. My book on webdevelopment states that I can use System.out.println() in most IDE's to print to the console....

In IntelliJ, how do I pass command line variables when building with Maven (TestNG run configuration)?

I'm trying to do the following, but in IntelliJ with a TestNG run configuration: mvn clean install -Dfoo=bar So, the value for the foo system property should be bar: System.out.println(System.getProperty("foo")); ====== bar All potential answers I've googled either tell me to hardcode variables into my pom.xml (which I can't do)...

Visualizing gradle dependencies in Intellij

Is there a way to visualize project dependencies for a gradle project in Intellij? For a maven project, if you right click in the pom.xml you get a Show dependencies option but there I don't see such an option for a gradle project. Does this feature exist for gradle project?...

IntelliJ - print my keymap

Is there a way to print MY keymap? (IntelliJ IDEA) - Maybe a plugin? I couldn't find a way and I don't want to type all shortcuts manually

Intellij web application on tomcat server shows http://localhost:8080/index.jsp instead of http://localhost:8080/myapp/index.jsp

I'm following a tutorial on udemy. In the tutorial he is using eclipse. But i'm following the course with intellij. Every thing works fine but one thing i keep noticing is that when he runs the servlets or jsp pages it is always shows the project name before the servlet(http://localhost:8080/myapp/index.jsp)....

How to create .jar library from class in Intellij IDEA

I am trying to learn java and have implemented a single, and simple, class in Intellij IDEA 14.1.3. I want to be able to use this class in other projects without copy and pasting the class source into each project src directory. Essentially, I want to create a package, or...

Intellij Live Template with Mockito

So I'm trying to create a live template in Intellij for Mockito. What I have is follows: $VAR$ = Mockito.mock($VARCLASSNAME$);$END$ VAR has the expression of suggesteFirstVariableName() Now what do I need to put in for the expression so that it automatically picks up the class name of the VAR? Thanks,...

How to disable plugin suggestions in Intellij IDEA?

In Intellij IDEA how can I disable plugin suggestions? Whenever I create a yml plugin in a NEW project it will suggest a plugin to me that I have already ignored and is annoying.

Is it possible to highlight ObjC code in Intellij IDEA?

Intellij IDEA have IDE AppCode for iOS projects on ObjC/Swift. I am develop crossplatform app (android and ios supports) on Cordova which contain Java, JS and ObjC as base languages. And unforunately IDEA do not highlight ObjC code. I have not found a plugin that would it did. Is it...

How do you insert the current year into InteliJ IDEA Copyright template?

I'm trying to make an Apache Velocity template for MIT license in IntelliJ IDEA copyright settings. I want it to print 2015-${current_year} where the year is. Here is what I've tried to put in Settings → Copyright → Copyright Profiles → MIT → Copyright text: #set ($current_year = $dateTool.getCurrentDate('yyyy')) Copyright...

Is it legal to use IntelliJ's EAP versions for commercial use? [closed]

From my understanding, the EAP version has the ultimate features included in it. I am curious whether this version can be used for commercial use. I have no been able to find a definite answer. Thanks....

Android studio Gradle is not building the new Jar file

I just wanted to try the new android lib, so i just added the dependency like this in my new version of android studio. its not at all building the project only. Below is my gradle file, new lib added is compile 'com.android.support:design:22.2.0' `apply plugin: 'com.android.application' android { compileSdkVersion 22...

Don't show class members in alphabetical order in intellij

I use Scala in Intellij, and on the project panel it would show the members of a class, but it is sorted in alphabetical order. How can I see it in natural order (the order in the source code)?

Unable to run Java code with Intellij IDEA

I have just downloaded the IDE, and I want to edit my first Java file with it, I'm not interested in creating a whole project, just editing the single file. So I opened the file from my desktop with Intellij IDEA as I set it as my default program for...

Play Framework 2.4 @routes.WebJarAssets.at Compilation Error in IntelliJ IDEA 14.1.3

I'm trying to use WebJars with Play Framework 2.4.0, in Intellij IDEA 14.1.3. I have SBT 1.7.0 plugin and Scala 1.5.2 plugin (with project Scala version 2.11.6). My application works well when I run it from the terminal ($ activator run or $ sbt run) but I have compilation error...

Why .iml files should be added to gitignore? What should be placed in gitignore in common case?

Primary question is, why should I add IDEAs *.iml files to gitignore? If then I get repo without .iml file, I will forced to create new project and manualy add my files. Am I wrong about it? Actualy, my question is slightly wider. Where can I found more information about...

IntelliJ Sync Eclipse files - Where is this setting saved?

In IntelliJ there is the option of linking IntelliJ-files with Eclipse-files. So that changes to dependencies make IntelliJ readjust .project-files and the other way around. This setting is chosen when importing the project into IntelliJ. Now, i wonder: Where is this setting saved and is it possible that i can...

Is there anyway to let RubyMine choose first completion choice like Intellij Idea?

Intellij Idea like this:(when I click enter the auto completion code will appear on the line) RubyMine like this: The idea does not auto choose the first one.So I need to click down button and choose the select one. So I want to know is there anyway to let RubyMine...

Where to edit grails startup command line in IntelliJ IDEA?

Grails-2.5.0 startup fails if fork mode is disabled. I've found a workaround at https://jira.grails.org/browse/GRAILS-12129, which says; Don't use the spring loaded java agent. Removing the following from the command started by IntelliJ is enough But I cannot find where the command is written. Run -> Edit Configurations doesn't have any...

Using jUnit mock objects with Spring

I'm trying to write a unit test for a class that uses Spring. The code itself seems to be fine, but I keep getting a null pointer exception on my When statements for some reason. The source code is as follows: @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = {"/spring-bean-config.xml"} public class testClass { @Mock...

IntelliJ IDEA: Where is “reformat on commit” stored?

We have a complex project where we version control a clean version of our project files, which is locally exported to each checkout by a setup script. We are now talking about using "reformat on commit", so I'm looking into putting this into our project files, but I can't find...

How can I debug scala.js unit tests?

I have some scala.js unit tests written in utest. They all run just fine from the sbt build, however I would like to be able to step through the unit tests in a debugger. Using my favorite IDE (intellij) to debug the tests won't work because it will try to...

Change version constant before compile

I'm looking for a simple solution to find and replace a constant before compile. For example @Version@ replaced with 1.0.0 so the program has access to the correct version #s.

Getting an OOM issue on the setContentView call in a java gradle android project

I'm using Intellij-idea and I had this project working without gradle, ran just fine and was functional. Migrated it to a gradle project (by just creating a new gradle android project and copying over the code) and now I'm getting this stack trace: (sorry it's so small...) Here is my...

ESLint: How to set .eslintrc to recognize 'require'?

I am new to ESLint, and I have successfully integrated ESLint with IntelliJ. Out of the box, my integration of ESLint did not recognize node, but basic review of documentation made clear that by creating the configuration file named .eslintrc at the root of my project folder (with the proper...

IntelliJ freezes for about 30 seconds before debugging

when i try to debug my java app the IDE freezes for about 30 seconds with the message: "Finished, saving caches" After it unfreezes all works fine. It happens every time. When i only run (not debug) it does not freeze. What i tried: I changed the JDK on system....

Install Ultimate edition IntelliJ plugins in Android Studio

I have Ultimate edition of IntelliJ Idea w/ a valid licence. There is a very useful plugin only available in full edition named Database Tools and SQL support that allows the developer to browse and run queries on sqlite database stored in phone. Now i need to use this plugin...

Package management in Android Studio / IntelliJ IDEA

This may be a stupid question, but so, i have a simple app: http://tinypic.com/r/2ekolxd/8 Let's say i want to create a package called "SocialNetworks", where i need to implement some features like posting in social networks etc. So, i create a package, but i'd like to see it in the...

IntelliJ CTRL+H shortkey equivalent in MyEclipse

I used IntelliJ idea for development before. Now I emigration to MyEclipse environement. In IntelliJ idea I used CTRL+H shortkey for this class hierarchy. My question is : Is there equivalent for CTRL+H in MyEclipse?

Auto complete HTML attribute from CSS Intellij

link href="lib/ionic/css/ionic.css" rel="stylesheet" link href="css/style.css" rel="stylesheet" How can I have the auto-complete for the CSS class when I applying the class in the HTML? div class="bar bar-header bar-positive" how to get auto suggestions for attributes (ex: - bar-header after writing bar I pressed for auto suggestion but not get the...

Code styling without modifying the binaries

On the WebStorm for example and I believe in any Intellij product. You can easily refeactor the code and style it as you like from the setting 'Code Style'. But, the styling and refactoring actually change the binaries of the file. for example if you decide you want new line...

IntelliJ - use imported modules as dependencies like maven projects in Eclipse

I've been asking myself this question for a couple of years but never really found the solution. I used to work with eclipse (on maven java projects). I could import a project -let's call it 'proj-A'- and if one of proj-A's dependencies was found in the workspace with the same...

Spring Data neo4j JUnit4 setup

I confess I am a total newbie at the Java way of doing things and I am totally lost trying to get a simple unit test running. I am building a data access library and want to unit test it. I am using Spring Data Neo4j 4.0.0.BUILD-SNAPSHOT because I need...

Unresolved property variable when returned from method

... doChunk().then(function (results) { angular.forEach(results, function (info) { if (info.data.fields.worklog) { configProcess.results.push(info.data); ... The above is just a sample from my AngularJS application, but it's the same issue for all data (and vanilla JS) that's returned from somewhere else - like an HTTP request in this case. results - is...

Binding form elements to persistent storage in IntelliJ plugin

I have just started trying to make my own IntelliJ plugin and can't figure out how to properly save persistent information on bound form components. I followed the right click on form, Data Binding Wizard, and properly matched up everything that was listed. I then modified the generated methods to...

IntelliJ plugin invoke rename refactoring

I'm writing a plugin for IntelliJ that does a couple of things. One of the things that it performs is a rename of all references if they don't meet a specific style guideline (think of it like a style police officer that checks code styles before saving). What I'd like...

How to check java compilation error in intellij

It is very clear to see the compilation error in eclipse, but I found it is not very clear in intellij, do I miss something here ? thanks

IntelliJ Plugin written in Scala - doesn't work

I want to develop my own IntelliJ plugin and I would like to do it using Scala language. When I use Java, everything work perfectly, but I'm not able to run a simple AnAction implemented in Scala. Have a look at these code samples, I have two AnAction implementations, one...

Create a hyperlink to a project file in console output

Is there a way for me to write out a link to the console output that when clicked on directs to a project file in Intellij? For example, this happens when a run-time exception occurs. I see the stack trace and I can click on a link in the console...

Generate return type signature in Scala with Intellij Idea

While Scala has a type inference, it is considered good practice to explicitly define the return type of public functions. Is it possible to get IDEA add the explicit return type from the inferred one?

Cucumber.js debugging in IntelliJ

IntelliJ has a plugin for Cucumber.js. This suppose to enable running and debugging inside the IDE. The run configuration for cucumber.js works, but the debug mode is deactivated (Debug button can not be clicked). Does anybody else has the same problem and managed to solve it? Debugging is very essential...

How to disable Code Completion in Android Studio?

I am new in Android Programming and I want to disable the auto-completion in Android studio. I think this might even improve my coding ability and help me to understand the API Structure. I've done a lot of search in Google, but nothing found positive. So how to disable the...

Android studio prevent code reformatting on paste

I've started using Android Studio (replacing Eclipse) and one thing I just can't get used to is how Studio automatically (under certain circumstances) reformats some or even all of my code in the current file. One of those circumstances is pasting text into my file. when I do that, the...

Annotations to detect method calls with wrong order of String parameters

We have a big application which uses a lot of Strings: for serial numbers for product names for order number for customer references ... and many more ... Unfortunately our developers are only human. Sometimes the String values get mixed up when calling methods. For example: // this method public...

IntelliJ: Paste content of a file to hastebin.com

I'm searching for a simple way to paste the content of a file directly from IntelliJ into hastebin. But I didn't find any plugin for IntelliJ. I'm running IntelliJ on Xubuntu 14.12. Thank you in advance...

How to generate comments as well when automatically generating getters and setters in Android Studio

I want to generate comments as well when automatically generating getters and setters Android Studio: /** * username */ private String name; public String getName() { return name; } I Want: /** * username */ private String name; /** * Get username * @return username */ public String getName() {...

Why main generation template is named psvm in IntelliJ?

According to help, main generation template is named psvm. Why didn't they name it just main?...

Where has “Show Type Info on Mouse Motion” gone in Intellij 14

According to the following link I can enable this option: https://confluence.jetbrains.com/display/IntelliJIDEA/Working+with+Scala+Show+Type+Info+Action But I have just installed IntelliJ 14.1 and there is no "IDE Settings" when I open the "Settings" dialog. Can someone tell me how to set this option in this version?...

PlayFramework 2.4 and IntelliJ 14

I'm trying to import a PlayFramework 2.4 project into IntelliJ 14.1.3. I failed to import existing one (created in pre-2.4), so made these steps: Created a new play-java project via activator: activator new appName Tried to open the created project via IntelliJ. (Opened the Open dialog, then selected the folder...

Idea 14 - Maven 3 - pass parameters

I am looking for most efficient way to pass parameters to maven through idea 14 (I have just started working with idea). When I want to compile and deploy my application through maven itself, I just run this command mvn clean package tomcat7:redeploy -P localhost -Daugage_env=local. I dont know, how...

ADB not responding with Android Studio on Windows 8

I have already seen & tried all existing questions related to ADB not responding and yet I have been unable to fix my problem. This is the message I keep getting in Android Studio: And here are the running processes in my Task Manager: Can someone guide me as to...

Generate getter/setter, hashcode/equals, toString in one template in Intellij

It is possible to generate getter/setter, hashcode/equals, toString in one click? Right now I have to choose each one separetely.

IntelliJ IDEA: Open test result tab only on failure

Can I setup IntelliJ to open the "Run" tab with the test results only if a unit test fails and keep it hidden otherwise?

Simple JavaEE HTML GET/POST application

I'm just starting out with JavaEE (I'm decently fluent in JavaSE) and am having trouble wrapping my brain around all the new things that are required to make even the simplest of applications. Right now I am trying to use JAX-RS annotations to generate a simple "Hello World" html page...

Perforce workspaces and multiple branches

I'm trying to figure out the best way to setup Perforce workspaces when working with multiple branches for different parts of the code base. Let's say that my default workspace mapping is as follows: //depot/foo/trunk/... //my_client/trunk/foo/... //depot/foo1/trunk/... //my_client/trunk/foo1/... //depot/foo2/trunk/... //my_client/trunk/foo2/... And I need to work with both foo and foo1...

How to keep IntelliJ IDEA from rearranging javadoc tags?

/** * Comment. * * <p>Hello * * @author me ([email protected]) * @version $Id$ * @since 0.1 * @checkstyle ClassDataAbstractionCoupling (500 lines) * @checkstyle ClassFanOutComplexity (500 lines) */ When I reformat my code with Ctrl+Alt+L, the @since is placed after the @checkstyle tags. Is there any way to disable javadoc...

How to put notes for packages in IntelliJ?

I saw for some packages IntelliJ shows the package name as something [some-notes] and I am wondering how I can set up the bold part in IntelliJ, since they seem very useful when we need some explanation of what the package does. Can anyone tell me how?...

mrunit execute test method error HADOOP_HOME or hadoop.home.dir are not set

I want to test hadoop2 mapreduce code,use mrunit but have a error.local machine don't install hadoop in windows. pom.xml below: <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-core</artifactId> <version>2.6.0-mr1-cdh5.4.2</version> </dependency> <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-common</artifactId> <version>2.6.0-cdh5.4.2</version> </dependency> <dependency>...

How to get suggestions for compilation errors in Intellij

One of the features I love the most about Eclipse is that is shows you suggestions for compilation errors just by hovering over the error with the mouse. For instance, if I make a class implement an interface, it'll automatically offer me to add the unimplemented methods. Or if I...

How do I turn my java program into a command line utility on linux?

I've written a small command line app in java on ubuntu using intellij idea. I'm compiling my project to a jar file which I can then execute using java -jar myapp.jar arg1 arg2 arg3 etc I would however like to run my app like this: myapp arg1 arg2 arg3 How...

How do I collapse all folders in IntelliJ IDEA?

Is there a key shortcut or a IntelliJ IDEA plugin that will let me collapse all folders in the "Project" view in IntelliJ?