quick version:
I want to pass studio.vmoptions
arguments to while executing studio.sh
directly on the command line, instead of the actual vmoptions
file.
Is it possible? How?
for example, something like ./studio.sh -Dhidpi=true
.
use case:
latest version of Android Studio adds support for HiDpi
screens for Windows and Linux. Adding the -Dhidpi=false
or -Dhidpi=true
to the studio.vmoptions
file will activate/deactivate the feature.
My problem is that sometimes I work on a 24" FullHD screen (-Dhidpi=false
) and other times directly on the laptop 11" FullHD screen (-Dhidpi=true
).
I would like to quick/easy be able to launch Android Studio with true or false without having to edit the vmoptions every.single.time. I believe that some type of cmd line argument would be the best, but I'm open to suggestions that doesn't involve creating a custom script to modify the vmoptions before launching it.