How to fix Unity autorefresh

I get the behaviour while using unity in combination with visualstudio.
Some files just wont auto refresh in unity.
The only solutions I hav found so far are:

  • Reimport all

  • rename, switch to editor, wait until it recognizes the file as missing, switch back, rename back, switch to editor again

It’s really bothering and makes coding on unity tiresome.

Does anybody know why Unity can’t recognize the file change?

I’m on Windows 7 64

This problem can be caused if you have enabled meta files in Project Settings, but have set the file attribute to “Hidden” on the meta files. Unity just stops refreshing, but will refresh fine if you open a project that doesn’t use meta files, or if you unhide the meta files.