让 IntelliJ IDEA 刷新项目并检测更改的文件 [英] have IntelliJ IDEA refresh the project and detect changed files

查看:131
本文介绍了让 IntelliJ IDEA 刷新项目并检测更改的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Eclipse 进行开发,因为 IntelliJ 不能做的所有事情(例如突出显示变量的所有实例),并且因为 IntelliJ 在远程连接上速度很慢.但是因为我还没有将 Maven 完全集成到 Eclipse 中,所以我必须切换回 IntelliJ 以使用 Tomcat 编译和运行我的项目.

I'm using Eclipse for development because of all the things IntelliJ can't do (e.g. highlight all instances of a variable) and because IntelliJ is dog slow over a remote connection. But because I still don't have Maven integrated completely into Eclipse, I have to switch back to IntelliJ to compile and run my project using Tomcat.

如何告诉 IntelliJ 检测文件系统上所有已更改的文件并重新编译它们?(我不想手动打开每个更改的文件来让 IntelliJ 检测更改.)在 Eclipse 中,我只想刷新项目树 [1]...

How can I tell IntelliJ to detect all files that have changed on the file system and recompile them? (I don't want to manually open each changed file to get IntelliJ to detect the change.) In Eclipse I would just Refresh the project tree [1]...

脚注:

  1. Eclipse 具有一项功能(名为使用本机钩子或轮询刷新"),您可以启用该功能来自动检测更改并在检测到任何底层更改时同步透视图在文件系统中(见下图).这非常方便,并且无需在使用构建工具时手动刷新项目 - 在项目目录结构中创建文件/目录.

Intellij 是否有类似的东西(显式设置或其他),无需单击按钮即可将视图与文件系统更改同步?

Is there anything similar for Intellij (explicit setting or otherwise) that eliminates having to click a button to synchronize the view with filesystem changes?

推荐答案

您可以使用同步"按钮(两个黄色箭头)或简称 Ctrl+Alt+

You can use the "synchronize" button (two yellow arrows) or in short Ctrl+Alt+Y

这篇关于让 IntelliJ IDEA 刷新项目并检测更改的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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