如何像 Eclipse 一样清理 IntelliJ IDEA 中的项目缓存? [英] How to clean project cache in IntelliJ IDEA like Eclipse's clean?

查看:56
本文介绍了如何像 Eclipse 一样清理 IntelliJ IDEA 中的项目缓存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时 IDE 会因为缓存而出错.在Eclipse中,我们可以使用clean来解决这个问题.我怎样才能在 IntelliJ 中做到这一点?

Sometimes the IDE makes some error because of the cache. In Eclipse, we can use clean to solve the problem. How can I do this in IntelliJ?

推荐答案

取决于您运行的版本.基本上是一样的就去
文件 -> 使缓存无效,然后重新启动 Intellij

文件 -> 使缓存无效/重新启动

Depending on the version you are running. It is basically the same just go to
File -> Invalidate caches, then restart Intellij
or
File -> Invalidate caches / Restart

主要区别在于,在旧版本中,您必须手动重新启动,因为在重新启动之前不会删除缓存文件.较新的版本会询问您是否还想重新启动.

The main difference is that in older versions you had to manually restart as cache files are not removed until you restart. The newer versions will ask if you also want to restart.

如这里所见在这个官方上Jetbrains 帮助页面

As seen here on this official Jetbrains help page

您也可以尝试手动删除 system 文件夹中已安装版本的缓存.此文件夹的位置取决于您的操作系统和安装的版本.

You can also try delete caches manually in the system folder for your installed version. The location of this folder depends on your OS and version installed.

Windows Vista、7、8、10
Users.

Linux/Unix
~/.

Mac 操作系统
~/Library/Caches/

阅读本文以了解有关缓存位置的更多详细信息.

这篇关于如何像 Eclipse 一样清理 IntelliJ IDEA 中的项目缓存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆