[转] - Configuring Android Studio: IDE & VM Options, JDK, etc
Configuring Android Studio: IDE & VM Options, JDK, etc
|
You should not edit any files in the IDE installation directory. Instead, you can customize the attributes by creating your own
.properties or .vmoptions files in the following directories. (This has been possible on some platforms before, but it required you to copy and change the entire contents of the files. With the latest changes these properties are now additive instead such that you can set just the attributes you care about, and the rest will 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), but if you are on a different version of Android Studio, see 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}
Windows:
Mac:
Linux:
You can also place use environment variables to point to specific override files elsewhere:
Note that this last variable allows you to for example run Android Studio with Java 7 on OSX (which normally picks Java 6 from the version specified in
Info.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 MemoryBy default, the IDE is assigned a maximum of 750 MB. If you have a large project, or if you have a lot of RAM on your system, the IDE will run better if you increase the amount of memory it is allowed to use. To do that, create your own -Xmx2048mThe full set of default JVM arguments are the following, in case you want to override any of the others (such as the start heap size of the MaxPermSize) :defaults in the IDE right -Xms128m-Xmx750m-XX:MaxPermSize=350m-XX:ReservedCodeCacheSize=96m-XX:+UseCompressedOopsHelp, I Already Edited the IDE Installation FilesIf you've already edited the files by hand, here are the files from 1.0 such that you can restore them:
Android Studio is Ignoring My idea.vmoptions FileAround 1.0 we switched from storing VM options in a file called
idea.vmoptions to one called studio.vmoptions, to avoid clashing with IntelliJ installations. If you had created a file named idea.vmoptions for Studio, it will be ignored now. Put your edits in studio.vmoptions instead.PropertiesHere are 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
|
[转] - Configuring Android Studio: IDE & VM Options, JDK, etc的更多相关文章
- Android GreenDao with Android Studio IDE
转:http://blog.surecase.eu/using-greendao-with-android-studio-ide/ In this tutorial we will show you ...
- Android Studio IDE 插件开发
作者:字节跳动终端技术--周宸韬 概述 这篇文章旨在向读者介绍IntelliJ IDE插件的开发流程以及常用的一些通用功能,任何基于IntelliJ开发的IDE都可以通过该方式制作插件,例如Andro ...
- Android Studio IDE 简单学习和介绍
@import url(http://i.cnblogs.com/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/c ...
- Android Studio IDE Out of Memory
场景: 尝试过各种方式,IDE重装,重新启动,设置IDE MEMORY大小JDK MEMORY大小都无效 终于在FILE->INVALIDATE CACHES/RESTART 中点击重新启动之后 ...
- android studio IDE 下,设置ACTIVITY全屏
因为ANDROID STUDIO的JAVA类是继承AppCompatActivity的 ,所以常规的全屏设置并不管用.如果要设置全屏,请参照如下代码/ 1/首先,打开AndroidManifest.x ...
- Android Studio IDE 所遇问题汇总
[窗体视图无法显示] 在/res/values/styles.xml文件中,修改一下内容 <!-- Base application theme. --><style nam ...
- Android Studio IDE 主题设置
1.界面主题设置,如下图: 2.代码字体设置,如下图:
- Android Studio IDE的 LogCat如何过滤指定应用的调试信息
http://blog.csdn.net/wangqing830414/article/details/40377979 打开 LogCat在搜索框右侧的No Filters中选择 Edit Filt ...
- Android Studio 关联 JDK Java 源码
Android Studio 关联 Android 源码比较方便,一般下载后可自动关联,但是 Android Studio 默认使用的 JDK 是内嵌的,是不带源码的.所以在查看 JDK 源码时,看到 ...
随机推荐
- 手机移动端WEB资源整合
meta基础知识 H5页面窗口自动调整到设备宽度,并禁止用户缩放页面 <meta name="viewport" content="width=device-wid ...
- 关于DoesObjectExist
目录: 我们可以看到这个文件夹目录是存在的 文件: 然后,我们运行测试一下: 文件存在检测成功(正常) 文件夹存在,但检测失败! ??? 明明存在的,为什么检测不到……
- CopyFile类通过调用这个类的delete(String filePath)方法可以组合成一个Cut类
package folderoperation; import java.io.File;/** * 注意它会删除文件,文件夹以及文件夹下的所有内容(根据指定的地址) * @author Dawn * ...
- js中子父页面数据传递与方法调用
A父页面 ,B为子页面 1.父页面调用子页面 A中调用B中方法:self.frames[iframeName].BFunction(); 注:iframeName:为父页面中iframe的name属性 ...
- iOS8.3发布了Swift 1.2带来哪些新变化
苹果前几日在面向开发者推送iOS 8.3 Beta的同时,还发布了版本号为6D520o的Xcode 6.3 Beta,其中便包含了iOS 8.3 Beta和OS X v10.10 SDK,并进一步提升 ...
- Ruby中 Include, Extend, Import, Require 的使用区别
Include 如下例当你Include一个模块到某个类时, 相当于把模块中定义的方法插入到类中.它允许使用 mixin.它用来 DRY 你的代码, 避免重复.例如, 当你有多个类时, 需要相同的函数 ...
- 安卓手机APP压力monkey测试
一.Monkey概述 Monkey是Android中的一个命令行工具,可以运行在模拟器里或实际设备中.它向系统发送伪随机的用户事件流(如按键输入.触摸屏输入.手势输入等),实现对正在开发的应用程序进行 ...
- Bootstrap栅格系统详解,响应式布局
Bootstrap栅格系统详解 栅格系统介绍 Bootstrap 提供了一套响应式.移动设备优先的流式栅格系统,随着屏幕或视口(viewport)尺寸的增加,系统会自动分为最多12列. 栅格系统用于通 ...
- JDStatusBarNotification和一些宏定义
// // AddTopicViewController.m // vMeet2 // // Created by 张源海 on 16/6/30. // Copyright © 2016年 h ...
- 数据库为什么要用B+树结构--MySQL索引结构的实现
原理: http://blog.csdn.net/cangchen/article/details/44818485 http://blog.csdn.net/kennyrose/article/de ...