You should don't edit any of the files in the IDE installation directory. Instead, can customize the attributes by creating your own.propertiesOr.vmoptionsFiles in the following directories. (This have been possible on some platforms before, but it required your to copy and change the entire contents of the files. With the latest changes these properties is now additive instead such so you can set just the attributes your care Abou T, and the rest would use the defaults from the IDE installation).Note: The folder name depends on the version of Android Studio. The documentation below applies to the release version (1.1.x), and if you were on a different version of Android Studio, s EE the table below for the correct folder name for your version. The following table shows the configuration folder name to use for each studio version. This folder is referenced below as {folder_name}
Android Studio Version
|
Preferences Folder Name
|
| 1.0.x and 1.1.x |
Androidstudio |
| 1.2.0 Eap/preview |
AndroidStudioPreview1.2 |
| 1.2.0, 1.2.1, 1.2.2 |
AndroidStudio1.2 |
| 1.3 Preview |
AndroidStudioPreview1.3 |
| 1.3.0, 1.3.1, 1.3.2 |
AndroidStudio1.3 |
| 1.4.0 Eap/preview (future) |
AndroidStudioPreview1.4 |
Windows:
%USERPROFILE%\.{FOLDER_NAME}\studio.exe.vmoptions and/or %USERPROFILE%\.{FOLDER_NAME}\studio64.exe.vmoptions
%USERPROFILE%\.{FOLDER_NAME}\idea.properties
Mac:
~/Library/Preferences/{FOLDER_NAME}/studio.vmoptions
~/Library/Preferences/{FOLDER_NAME}/idea.properties
Linux:
~/.{FOLDER_NAME}/studio.vmoptions and/or ~/. {Folder_name}/studio. vmoptions
~/.{FOLDER_NAME}/idea.properties
You can also place use environment variables to point to specific override files elsewhere:
STUDIO_VM_OPTIONS, which vmoptions file to use
STUDIO_PROPERTIES, which property file to use
STUDIO_JDK, which JDK to run studio with
Note that this is the last variable allows-example run Android Studio with Java 7 on OSX (which normally picks Java 6 From the version specified inInfo.plist):$ export STUDIO_JDK=/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk$ open /Applications/Android\ Studio.app
(for Mac in particular, see this document on the topic of JDK selection.)
Increasing IDE Memory
By default, the IDE is assigned a maximum of. If you had a large project, or if you had a lot of RAM on your system, the IDE would run better if you increase the Amoun T of memory it is allowed. To does, create your own override (in the location studio.vmoptions explained above) and add a line like this:
-Xmx2048m
The full set of default JVM arguments is the following, in case you want to override any of the others (such as the start Heap size of the MaxPermSize):d efaults in the IDE right
-Xms128m
-Xmx750m
-XX:MaxPermSize=350m
-XX:ReservedCodeCacheSize=96m
-XX:+UseCompressedOopsHelp, I already edited the IDE installation Files
If you've already edited the files by hand, here is the files from 1.0 such so you can restore them:
- Idea.properties (Windows)
- Studio.exe.vmoptions (Windows)
- Studio64.exe.vmoptions (Windows)
- Studio.vmoptions (Mac, Linux)
- Idea.properties (Mac, Linux)
Android Studio is ignoring My idea.vmoptions Filearound 1.0 We switched from storing VMS options in a file calledidea.vmoptionsto one calledstudio.vmoptions, to avoid clashing with IntelliJ installations. If you had created a file namedidea.vmoptionsFor Studio, it'll be ignored now. Put your edits instudio.vmoptionsinstead. Propertieshere is properties you can customize in your own idea.properties file: #-------------------------------------- -------------------------------# Uncomment this option if you want to customize path to user installed plugins folder. Make sure you‘re using forward slashes.#---------------------------------------------------------------------# idea.plugins.path=${idea.config.path}/plugins#---------------------------------------------------------------------# Maximum file size (kilobytes) IDE should provide code assistance for.# The larger file is the slower its editor works and higher overall system memory requirements are# if code assistance is enabled. Remove this property or set to very large number if you need# code assistance for any files available regardless their size.#---------------------------------------------------------------------idea.max.intellisense.filesize=2500#---------------------------------------------------------------------# This option controls console cyclic buffer: keeps the console output size not higher than the specified buffer size (Kb).# Older lines are deleted. In order to disable cycle buffer use idea.cycle.buffer.size=disabled#---------------------------------------------------------------------idea.cycle.buffer.size=1024#---------------------------------------------------------------------# Configure if a special launcher should be used when running processes from within IDE.# Using Launcher enables "soft exit" and "thread dump" features#---------------------------------------------------------------------idea.no.launcher=false#---------------------------------------------------------------------# To avoid too long classpath#---------------------------------------------------------------------idea.dynamic.classpath=false#---------------------------------------------------------------------# There are two possible values of idea.popup.weight property: "heavy" and "medium".# If you have WM configured as "Focus follows mouse with Auto Raise" then you have to# set this property to "medium". It prevents problems with popup menus on some# configurations.#---------------------------------------------------------------------idea.popup.weight=heavy#---------------------------------------------------------------------# Use default anti-aliasing in system, i.e. override value of "Settings|Editor|Appearance|Use anti-aliased font"# option. May be useful when using Windows Remote Desktop Connection for instance.#---------------------------------------------------------------------idea.use.default.antialiasing.in.editor=false#---------------------------------------------------------------------# Disabling this property may lead to visual glitches like blinking and fail to repaint# on certain display adapter cards.#---------------------------------------------------------------------sun.java2d.noddraw=true#---------------------------------------------------------------------# Removing this property may lead to editor performance degradation under Windows.#---------------------------------------------------------------------sun.java2d.d3d=false#---------------------------------------------------------------------# Workaround for slow scrolling in JDK6#---------------------------------------------------------------------swing.bufferPerWindow=false#---------------------------------------------------------------------# Removing this property may lead to editor performance degradation under X Window.#---------------------------------------------------------------------sun.java2d.pmoffscreen=false#---------------------------------------------------------------------# Workaround to avoid long hangs while accessing clipboard under Mac OS X.#---------------------------------------------------------------------#ide.mac.useNativeClipboard=True#---------------------------------------------------------------------# Maximum size (kilobytes) IDEA will load for showing past file contents -# in Show Diff or when calculating Digest Diff#---------------------------------------------------------------------#idea.max.vcs.loaded.size.kb=20480 #---------------------------------------------------------------------# High Density (aka Retina aka HiDPI) Display support:## The two options below allow overriding the built-in HiDPI display detection# algorithm to provide a custom system DPI.# The options are not supported on Mac, as Retina support is built-in.## hidpi.system.dpi.override=<dpi_value># where <dpi_value> can range from 96 (100% zoom), to 288 (300%) zoom. ## hidpi=true is a legacy option that is equivalent to setting# hidpi.system.dpi.override=192 (200% zoom)#---------------------------------------------------------------------#hidpi. system.dpi.override=192#hidpi =true |