Don't know why you are being downvoted, this is how a lot of clients do it - Jetbrains does the same thing as well.