Showing posts with label IntelliJ. Show all posts
Showing posts with label IntelliJ. Show all posts

Tuesday, 28 February 2017

HOW TO INSTALL PLUGINS IN INTELLIJ IDEA IDE?

This article shows the sequential screenshots to download & install the plugins in IntelliJ IDE.

Here, I am showing the JMeter plugin installation:

Step 1:  Go to preferences from menu bar as below: or

Press keyboard shortcut (Command + Comma)  ⌘, on Mac

File -> Settings on Windows & Linux



Step 2: Directly shows all the available plugins in the IDE.


Step 3: First search for the JMeter in the available plugins. You see this screen if its not already installed.


Step 4:  Click Browse repositories button, which loads all the repository plugins


Step 5: Now search for the plugin you would like to install, eg: JMeter. Then right click on the plugin & click "Download and install".


Step 6: Prompts the user whether to begin download & installation process


Step 7: If proceeded with Yes, it automatically downloads & install the plugin:


Step 8: After successful installation, IntelliJ asks for a restart: Just like below



 Step 9: Ensure the plugin downloaded & installed successfully by searching for jmeter plugin in the available plugins again.


                                                     HOPE IT IS HELPFUL ......PLEASE SHARE.........

HOW TO GENERATE GETTERS & SETTERS (Actuators & Mutators) FOR A POJO IN IntelliJ IDEA IDE?

For those, who are new to IntelliJ IDE, this article helps in generating Getters & Setters of any POJO (Plain Old Java Object).

First way: Keyboard Shortcut 

               On Mac ( command + N )
               On Linux & Windows — use (Alt + Insert)

The following screenshots works for Mac. The above keyboard shortcuts still works better on respective OS.

Step 1:

Create a simple POJO with some fields:

package sample;

/**
* Created by dineshdontha on 2/27/17.
*/
public class Person {

    String name;
    String password;
    Integer code;
    String city;

}

Step 2:

Press Command + N to see a context menu like this


Step 3:

You will see a popup as below, for selecting the fields:


Step4:

Select the required fields 



Second Way: 

Use the Menu : Code -> Generate . . .



Once after selecting Generate . . . Menu Item, the a context menu appears, just like in Step 2 as above & then everything is same.

                       HOPE IT IS HELPFUL...PLEASE SHARE THIS