PhpStorm10 设置内存

phpstorm 10.2php

修改目录html

C:\Program Files (x86)\JetBrains\PhpStorm 10.0.2\binjava

根据你使用的版本修改32位或64位的配置文件缓存

PhpStorm.exe.vmoptionsphpstorm

PhpStorm64.exe.vmoptionside

 

WebStorm 11.0.2性能

修改目录优化

C:\Program Files (x86)\JetBrains\WebStorm 11.0.2\binidea

根据你使用的版本修改32位或64位的配置文件spa

WebStorm.exe.vmoptions

WebStorm64.exe.vmoptions

 

简单优化

去掉平时用不到的插件

根据你实际的状况在插件设置页面(File->Settings->Plugins)中去掉日常用不到的插件(我去除了ASP、 CoffeeScript、Drupal Support、Google App Engine Support for PHP、Java Server Pages Intergration等等),在必定程度上会提升软件打开时的加载速度。

 

修改内存配置

若是你计算机的内存足够大的话,能够根据你系统内存状况分配内存的大小,即修改PhpStorm.exe.vmoptions 文件,修改前记得先备份。下面是个人配置:

 

1

2

3

4

5

6

7

8

9

10

11

-server

-Xms256m设置初时的内存数,你须要设置一个合理的值,增长该值能够提升Java程序的启动速度。若是你的内存够大,如2G,能够设置到400m。

-Xmx1024m设置最大内存数,提升该值,能够减小内存Garage收集的频率,提升程序性能。

-XX:MaxPermSize=250m

-XX:ReservedCodeCacheSize=64m

-ea

-Dsun.io.useCanonCaches=false

-Djava.net.preferIPv4Stack=true

-XX:+UseCodeCacheFlushing

-XX:+UseConcMarkSweepGC

-XX:SoftRefLRUPolicyMSPerMB=50

有关这些参数的详细解释能够访问:http://www.cnblogs.com/mingforyou/archive/2012/03/03/2378143.html

 

优化文件保存

我我的不是很喜欢PhpStorm的自动保存功能,我一般都会取消自动保存功能,以及编辑过的文件*号标识:

Settings->General 取消 Synchronize file on frame activation 和 Save files on framedeactivation 的选择。

Settings->Editor->Editor Tabs 勾上 Mark modifyied tabs with asterisk 选项。

 

优化工程加载

如何让PhpStorm启动的时候不打开工程:Settings->General 取消 Reopen last project on startup 的选择 。

 

修改配置目录和插件目录

修改 D:/Program Files (x86)/JetBrains/PhpStorm 7.1.3/bin/idea.properties 文件,修改前记得先备份
idea.config.path=G:/Data/Config/PhpStorm/.WebIde70/config
idea.system.path=G:/Data/Config/PhpStorm/.WebIde70/system
默认config所在目录为 C:/Users/tangrucheng/.WebIde70

 

清除缓存

项目久了以后能够清除缓存 File -> Invalidate Caches / Restart…

 

 

官方帮助文档

https://intellij-support.jetbrains.com/hc/en-us/articles/206827547-Selecting-the-JDK-version-the-IDE-will-run-under

 

QQ截图20151211105242.png

相关文章
相关标签/搜索