72

In Eclipse, there is something called refresh workspace or F5 that refreshes the files, to make sure to pick-up any files that are changed outside eclipse.

How do i do that in Netbeans ? I am using 6.9.1 for PHP/Java development?

I don't see any refresh nor F5 works?

any hints? any plugins??

Satish
  • 6,337
  • 7
  • 39
  • 62

10 Answers10

86

Within NetBeans:

select "Source" > "Scan for External Changes" 

this will force the IDE to look for changes and "Refresh" the file structure.

I develop PHP within NetBeans and am frequently creating new files outside of the IDE. This does the trick every time and works quickly.

user
  • 85,380
  • 17
  • 189
  • 186
mrbnetworks
  • 1,917
  • 2
  • 14
  • 10
  • I am using NetBeans + SourceTree because I dont like the GUI of NetBeans GIT. I thought refresh would help to change file name colors / states. But I had to close project directory root and then refresh otherwise it does nothing. –  Mar 09 '16 at 12:09
  • @user2917245 Right click on the directory -> Git -> Show changes, should refresh the git state of your files. – naitsirch Sep 28 '20 at 10:10
43

I think below is the best Answer to that. While Scan for External Changes takes a while.

Instead.

Tools->Options->Miscellaneous->Files and uncheck Enable-auto-scanning of source. Then it will give an option like Refresh Folder.

This is cool against scanning the whole project to see changes in one folder.

Arsen Khachaturyan
  • 6,472
  • 4
  • 32
  • 36
bharatesh
  • 842
  • 2
  • 10
  • 22
  • 19
    In NetBeans 8.0 (RC1), this option is now location in `Tool -> Options -> Miscellaneous -> Files`. – Cypher Apr 07 '14 at 18:05
  • Thanks. It is a shame that this option is not activate by default! auto-scanning is not working in my case – sdespont Dec 02 '14 at 09:38
  • This worked fine for me. Allows quick and easy way to just refresh folders that have had extra files added. My Netbeans never did it automatically. – Lee Dec 02 '14 at 11:33
  • 1
    @sdespont it's activated by default in NetBeans 8.2 – Grant Foster Nov 02 '18 at 15:38
32

Never Mind, found ScanOnDemand plugin and also there is source-->Scan for External Changes menu.

Satish
  • 6,337
  • 7
  • 39
  • 62
29

For Netbeans-IDE 7.2 and above

Go To Tools->Options->Miscellaneous->Files and uncheck Enable-auto-scanning of source. Then it will give an option like Refresh Folder.

You can refresh the folder or whole workspace.

Swapnil T
  • 557
  • 7
  • 17
14

Select "Scan for external changes" from the "Source" menu.

Alfonso Tienda
  • 2,925
  • 1
  • 14
  • 27
8

I use netbeans deploying php projects.

Source->Scan for External Changes

The files in the projects will be refreshed or synchronized with the windows file system.

macio.Jun
  • 8,823
  • 1
  • 42
  • 40
7
Source -> Scan For External Changes

enter image description here

Nanhe Kumar
  • 12,767
  • 3
  • 67
  • 60
4

I made it like below ,

Right click on the folder (e.g webpages) --> Refresh

in my netbeans 6.9

Santhosh
  • 8,045
  • 2
  • 26
  • 54
1

The only think that worked for me, is "Synchronization" when right-clicking on the project.

Roderick
  • 11
  • 1
  • V-8.2 Right click on folder you want to update with external resources. This will open menu, look for option 'Synchronize'. Once clicked, it will populate two tables in diff view displaying remote changes and local changes(Netbeans platform). Just review changes and hit Synchronize button to update them in netbeans. – Disha Goyal Apr 09 '19 at 07:20
1

Also, if you're using subversion, if you use an external subversion client you can run "update" in the subversion menu to update the diff highlighting.

Dave Lancea
  • 1,439
  • 13
  • 19