4

I installed XAMPP and then Netbeans and noticed that new PHP projects default to XAMPP's htdocs folder. Does anyone know how to change this default folder?

I tried to search google but all the first page results are related to Netbeans 7. I tried to follow the instructions from this question but I can't find the projectui.properties mentioned in the accepted answer. I'm on Windows 10.

Cave Johnson
  • 6,499
  • 5
  • 38
  • 57

5 Answers5

4

May be this will help you

  1. Edit the file C:\Users\<YourName>\AppData\Roaming\NetBeans\8.2.0\config\Preferences\org\netbeans\modules\projectui\groups\<TheGroup>.properties.
  2. Change the path entry to the new location.
Cave Johnson
  • 6,499
  • 5
  • 38
  • 57
Nitin Pund
  • 1,082
  • 2
  • 9
  • 23
  • Here is a solution Netbeans 8.1+ https://medium.com/@codeliger/changing-default-sources-folder-in-netbeans-a2c5355cdc03 – mvorisek Oct 21 '17 at 15:12
3

In addition to directory given in above answer, default directory under NetBeans 10 and Linux/Ubuntu can be modified using

nano ~/.netbeans/10.0/config/Preferences/org/netbeans/modules/projectui.properties
1

When you create a new project, its parent folder becomes a default folder for your future project, you can reassign it everytime creating new project.

Zhorius
  • 11
  • 1
0

You can edit that file if you are using NetBeans IDE 15 and installed from Snap Store.

sudo nano ~/snap/netbeans/69/config/Preferences/org/netbeans/modules/projectui.properties
eharuncan
  • 1
  • 2
0

Running Netbeans 11:

C:\Users\<YOUR_WINDOWS_USER>\AppData\Roaming\NetBeans\11.1\config\Preferences\org\netbeans\modules\projectui.properties

Look for this property:

enter image description here

BabaNew
  • 884
  • 1
  • 13
  • 27