Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

have IntelliJ IDEA refresh the project and detect changed files

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?

'Refresh Using native hooks or polling' setting

like image 201
Garret Wilson Avatar asked Jan 04 '11 22:01

Garret Wilson


People also ask

How do I see files changed in IntelliJ?

View changes history for a file or selectionThe change history for a file is displayed in the dedicated History tab of the Version Control tool window Alt+9 . The change history for a selection of code is displayed in a separate window, in the form of the differences viewer.

How do I see commit history in IntelliJ?

IntelliJ IDEA lets you review the state of your project at a selected revision. Open the Git tool window Alt+9 and switch to the Log tab. Select a commit and choose Show Repository at Revision from the context menu.


1 Answers

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

like image 150
krakover Avatar answered Sep 18 '22 04:09

krakover