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

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

问题描述

由于IntelliJ无法做到的所有事情(例如突出显示变量的所有实例),因此IntelliJ在远程连接上变慢,我正在使用Eclipse进行开发。但是,由于我还没有将Maven完全集成到Eclipse中,所以我必须重新使用IntelliJ来编译并使用Tomcat运行我的项目。



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



脚注


  1. Eclipse有一个功能(名为 em>刷新使用本机钩子或轮询 ),您可以启用这些功能,以便在文件系统中检测到任何基础更改时自动检测更改并同步透视图(请参见下图)。这是非常方便的,并且消除了在使用构建工具(在项目目录结构中创建文件/目录)时手动刷新项目的需要。

有没有什么类似的Intellij(显式设置或其他),消除了不必单击按钮来同步视图与文件系统更改?



解决方案

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


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.

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]...

Footnotes:

  1. Eclipse has a feature (named "Refresh Using native hooks or polling") which you can enable to automatically detect changes and synchronise the perspective when any underlying changes are detected in the filesystem (see images below). This is quite handy and eliminates the need to manually refresh the project when using build tools - where files/directories get created in the project directory structure.

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

解决方案

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

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

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