idea发布php项目路径,怎样把phpstorm(或IntelliJ IDEA2017)配置和缓存目录从C盘移出?...

《怎样把phpstorm(或IntelliJ IDEA2017)配置和缓存目录从C盘移出?》要点:

本文介绍了怎样把phpstorm(或IntelliJ IDEA2017)配置和缓存目录从C盘移出?,希望对您有用。如果有疑问,可以联系我们。

phpstorm是一款非常好用的PHP编辑器,但是它的缓存目录占空间非常大,默认是放在C盘用户目录的临时数据目录 C:\Users\你的电脑用户名\.PhpStorm2017.2下,

如果C盘空间不够,再经常运行PHPSTORM,就很容易占满C盘。那下是教你怎样把PHPSTORM的配置和缓存目录移出C盘。也适用于IntelliJ IDEA2017。

现在想要把它从C盘移出。

2173816d615ac74d2420ed6521dcae84.png

在IDEA的安装路径下中,进入bin目录后找到属性文件:idea.properties 用记事本打开,找到如下代码段:#---------------------------------------------------------------------

# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.

#---------------------------------------------------------------------

# idea.config.path=${user.home}/.IntelliJIdea/config

#---------------------------------------------------------------------

# Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.

#---------------------------------------------------------------------

# idea.system.path=${user.home}/.IntelliJIdea/system

#---------------------------------------------------------------------

# 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

需要注意,在IDEA2017中,默认这些配置是注释掉的,我在这可吃了大亏,没想到配置没有生效的原因是如此简单。

更改配置文件如下:#---------------------------------------------------------------------

# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.

#---------------------------------------------------------------------

idea.config.path=E:/jiashubing/.IntelliJIdea/config

#---------------------------------------------------------------------

# Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.

#---------------------------------------------------------------------

idea.system.path=E:/jiashubing/.IntelliJIdea/system

#---------------------------------------------------------------------

# 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

更改了以后重启IDEA,会弹出如下界面Complete Installation,选择Previous version

115a3265380c9a110a82da3a9f1e1eb3.png

此时,在目录下生成了一个.IntelliJIdea文件

151ef6ff7e04b5802d91831fcea6582d.png

此时把.IntelliJIdea2017.1删除了也可以,原来的项目也都能找得到

PS:初始缓存文件夹.IntelliJIdea2017.1的来历,之前安装的是IDEA2015,那时的缓存文件是.IntelliJIdea,后来将IDEA2015升级成了IDE2017,在同一个目录下生成了这个.IntelliJIdea2017.1文件夹。可能是IDEA内部的某种设置,如果文件中已经存在了.IntelliJIdea文件,就要在后面增加版本号后缀。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值