How to download and install Intellij IDE & configure google-java-format Plugin
Hi Friends,
Many of us have used Mostly STS IDE , but we should also use Intellij IDE which have many features .
It has 2 versions.
- Intellij IDEA Ultimate which is not free .
- Intellij IDEA Community Edition , this is free you can dowload it and can use.
Please use below link to down Intellij IDEA Community version and install it.
https://www.jetbrains.com/idea/download/other.html
Now you can configure google-java-format Plugin.
1.Open plugins window (CTRL+Shift+A): plugins
2.Click on browse repositories.
3.Search for google-java-format
4.Install the plugin.
5.Restart the IDE.
6. The plugin will be disabled by default. To enable it in the current project, go to File→Settings…→google-java-format Settings (or IntelliJ IDEA→Preferences…→Other Settings→google-java-format Settings on macOS) and check the Enable google-java-format checkbox. (A notification will be presented when you first open a project offering to do this for you.)
To enable it by default in new projects, use File→Other Settings→Default Settings…
and using Ctrl+Alt+L format the code in intellij
Let me know if you face any issue while installing Intellij.
Happy Learning
Thank you :)