Best practices for IntelliJ IDEA 9 + Maven + Version control

Short answer: don’t put these files in the source control repository as you can “generate” them (and this is even more true if you don’t need them, if they are annoying, if they can break others environment). I personally use the following values for svn:ignore: target *~ *.log .classpath .project *.ipr *.iws *.iml .settings

Maven Artifact Search is always empty

If you have a brand new IntelliJ install and have never updated your Maven Repository, notice that there is a little “Update” button to the right that becomes clickable when you click on each repository. Preferences > Build, Execution, Deployment > Build Tools > Maven > Repositories The important one is the https://repo.maven.apache.org/maven2/ remote repository, … Read more

Intellij comment format

There is an option in: Code Style > Java > Code Generation > Comment Code With “Line comment at first column” you can switch between: //System.out.println(“”); // System.out.println(“”); So, you don’t have a ‘space’ after comment (in first line), but its close enough 🙂 Idea 2017.2+ Recent versions of IntelliJ IDEA support adding a space … Read more

Database view missing from IntelliJ

This can be a repeat of deep’s answer. But will help newbies who aren’t familiar with Intellij jargon’s. Ctrl+Alt+s will take you to settings. From Settings go to plugins. Add Database Navigator from the repository if it is not enabled. After this go to View-> Tool Windows -> Database navigator

Shortcut for changing tabs->spaces->tabs in IntelliJ IDEA

To toggle between tabs and spaces: On the main menu, choose Edit → Convert Indents, and then choose To Spaces or To Tabs respectively. Read more about Changing Indentation. You can quickly do the same with Navigating to Action menu by pressing Ctrl+Shift+A and type convert indents in the field: If you want to set … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)