Skip to content
Advertisement

Tag: intellij-idea

How do I configure PostgreSQL with Grails 3.0?

I am using IntelliJ IDEA 15.0.2 as an IDE. I have created a Grails 3.0 application and changed it a bit to configure PostgreSQL. Here is my dataSource: And in my build.gradle I added runtime “postgresql:postgresql:9.4-1207.jdbc4”. But that gives errors when I run: What have I missed? Answer Data source Build Config Change the jre number according to your db

When creating a Java class in IntelliJ: is there a wizard/menu to select the package and class to extend from?

One of the features I like of Eclipse is that when creating Java classes, a wizard is available to specify different properties for the class. Like its package, class to extend from…etc (see below in the screen cap). Does IntelliJ provide something similar? I created a class but the process wasn’t smooth. I had to…mark /java directory as Source Root…create

Start DialogFragment from Activity

I’m learning Android programming with IntelliJ right now and got a little problem. I’ve got an Activity which looks like this: And this is how my DialogFragment looks like I’ve tried nearly everything, creating a new instance and start the method, using FragmentManager, which i wasn’t able to use. What should I do? Answer for approved namings use About instead

How to enable CSS editing in Intellij

I just switched to IntelliJ IDEA because I thought it would be great for developing JavaFX application. I must be doing something wrong because when I am editing a CSS file, there is no code-completion. When I am trying to create a new CSS file there is no option for CSS files. I am using the community version of IntelliJ.

Rearrange modifier keywords in IntelliJ

Is there any way to automatically rearrange modifier keywords in IntelliJ? For example, if I have the following code: Rearrange it to: Answer Go to Settings and enable the Editor | Inspections | Java | Code style issues | Missorted modifiers inspection. It has a quick fix to sort the modifiers. This inspection is also part of Analyze | Code

Advertisement