How to disable code formatting for some part of the code using comments?

Since version 13 it’s possible to wrap the code with // @formatter:off … // @formatter:on IntelliJ IDEA v.2018+: File > Settings > Editor > Code Style IntelliJ IDEA v.2016+: Preferences > Editor > Code Style IntelliJ IDEA v.14+: Preferences > Editor > Code Style > Formatter Control You can change the formatter control markers, as … Read more

How to define Gradle’s home in IDEA?

You can write a simple gradle script to print your GRADLE_HOME directory. task getHomeDir { doLast { println gradle.gradleHomeDir } } and name it build.gradle. Then run it with: gradle getHomeDir If you installed with homebrew, use brew info gradle to find the base path (i.e. /usr/local/Cellar/gradle/1.10/), and just append libexec. The same task in … Read more

IntelliJ does not show project folders

So after asking another question, someone helped me figure out that under File > Project Structure > Modules, there’s supposed to be stuff there. If it’s empty (says “Nothing to show”), do the following: In File > Project Structure > Modules, click the “+” button, Press Enter (because weirdly it won’t let me click on … Read more

Can IntelliJ IDEA encapsulate all of the functionality of WebStorm and PHPStorm through plugins? [closed]

All of the functionality of our lightweight IDEs can be found within IntelliJ IDEA (you need to install the corresponding plug-ins from the repository). It includes support for all technologies developed for our more specific products such as Web/PhpStorm, RubyMine and PyCharm. The specific feature missing from IntelliJ IDEA is simplified project creation (“Open Directory”) … Read more

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