How to change line width in IntelliJ (from 120 character)
IntelliJ IDEA 2018 File > Settings… > Editor > Code Style > Hard wrap at IntelliJ IDEA 2016 & 2017 File > Settings… > Editor > Code Style > Right margin (columns):
IntelliJ IDEA 2018 File > Settings… > Editor > Code Style > Hard wrap at IntelliJ IDEA 2016 & 2017 File > Settings… > Editor > Code Style > Right margin (columns):
Change your Editor settings: Settings → Editor → General → Ensure line feed at file end on Save
ctrl + F12 (cmd + F12 on macOS) will show all members of the current class in a popup window and let you pick up one. It works exactly like the ctrl + o shortcut in eclipse, much faster than ctrl + alt + shift + n
Alt + Shift + ← (Left Arrow) or Ctrl + E (Recent Files pop-up). Also check: Ctrl + Shift + E (the Recently Edited Files pop-up). Mac users, replace Ctrl with ⌘ (command) and Alt with ⌥ (option). Update In v12.0 it’s Alt + Shift +← (Left Arrow) instead of Alt + Ctrl + ← … Read more
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
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
Use Navigate (View in older versions) | File Structure Popup (Ctrl+F12 on Windows, ⌘+F12 on OS X). Start typing method/symbol name to either narrow down the list or highlight the desired element. Press Enter to navigate to the selected element.
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
I think this has improved with recent versions of IntelliJ. In my current version (12.0.2), you can add any number of separate Maven projects to the same “workspace”. The simplest way I’ve found to do this is to click the little + icon in the “Maven Projects” window (View > Tool Windows > Maven Projects) … Read more
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