How to get Current IntelliJ version programmatically

Can anyone help me to get current intelliJ version in java, programmatically

1
3 comments

Do you mean the version your plug-in currently runs under or the latest version available for the download? What problem are you trying to solve?

0
Avatar
Permanently deleted user

if(IntelliJ.version.equal(2017.1.2)){

do somthing

}else{

do somthing

}

0
ApplicationInfo.getInstance().getStrictVersion();

There are also other methods to get version components separately (major/minor/patch/micropatch).

3

Please sign in to leave a comment.