默认的配置文件
找到Rider的源文件位置,一般像如下:
...\JetBrains\JetBrains Rider 2022.3.1\bin
找到目录下文件idea.properties
,打下
主要是下这些
#---------------------------------------------------------------------
# Uncomment this option if you want to customize a path to the settings directory.
#---------------------------------------------------------------------
# idea.config.path=${user.home}/.Rider/config
idea.config.path=E:/.Rider/config
#---------------------------------------------------------------------
# Uncomment this option if you want to customize a path to the caches directory.
#---------------------------------------------------------------------
# idea.config.path=${user.home}/.Rider/system
idea.system.path=E:/.Rider/system
#---------------------------------------------------------------------
# Uncomment this option if you want to customize a path to the user-installed plugins directory.
#---------------------------------------------------------------------
idea.plugins.path=${idea.config.path}/plugins
#---------------------------------------------------------------------
# Uncomment this option if you want to customize a path to the logs directory.
#---------------------------------------------------------------------
idea.log.path=${idea.system.path}/log
分别4条配置,前两条设置config
和system
的位置。
小知识:
其中${user.home}
指的是用户的默认目录,不知道是哪里的在我的电脑地址栏输入%homepath%
查看,默认是:
C:\Users\你的用户名
把这两条启用修改到其他地址比如我上边设置到了E盘
后两条是plugins
和log
的内容,默认分别放在前面设置的config
和system
路径下的。所以只要开启就行(就是删除前面的#
,不让这条被注释)。
SolutionCaches下每个项目缓存
每个用Rider
打开的项目都会自己个自己对应的文件,编译的文件及索引文件等存在这里,删除后会自己生成新的,修改起来可能比较麻烦,嫌麻烦直接删除。另修改方法在下方
C:\Users\你的用户名\AppData\Local\JetBrains\Rider2022.3(对应版本)\resharper-host\local\Transient\Rider\v223\SolutionCaches_项目名
方便的话可以使用TreeSize
查看文件大小软件,找下就能看到这些大文件,每个项目大约1-2G。
修改方法
下载Rider针对Vs设计Resharper的插件
JetBrains.ReSharper.web.exe
下载地址:VS插件市场
就只安装名为Resharper
的就好。
下载安装完成后,打开选项进行设置。
四个选项:
- User Local Settings Folder 就是C盘
- Solution Folder 项目目录下名为
_ReSharper.Caches
文件夹 - Custom Folder 换一个自定义目录
- System TEMP Folder 系统
TEMP
的文件夹
之前使用放在项目目录下(Solution Folder),但是需要去添加.gitignore
,从git上忽略掉,有点麻烦。
最后选择放在一个自定义目录下(Custom Folder),我放在:
E:\_RiderReSharperCaches
评论