How to change the default Netbeans 7 project directory?

后端 未结 10 1853
悲&欢浪女
悲&欢浪女 2020-12-05 23:28

This is only a minor annoyance but if I can figure this out I\'ll be very happy.

Is it possible to change the default project directory in Netbeans 7? I don\'t know

相关标签:
10条回答
  • 2020-12-06 00:22

    In new netbeans 7 search file: D:\Users\YourWindowsUserName\.netbeans\7.0\config\Preferences\org\netbeans\modules\projectui.properties

    Delete: *RecentProjectsDisplayNames.*8, *RecentProjectsIcons.*8, *recentProjectsURLs.*8 for cleaning recent projects.

    Change projectsFolder for default projects folder when creating new one

    To find out the location of the projectui.properties file for the latest versions of NetBeans for various operating systems:

    http://wiki.netbeans.org/FaqWhatIsUserdir

    0 讨论(0)
  • 2020-12-06 00:23

    Under Linux, you can change it in the Netbeans configuration directory: .netbeans/6.8/config/Preferences/org/netbeans/modules/projectui.properties

    0 讨论(0)
  • 2020-12-06 00:30

    If you just want to move the projects in a Project Group, then do this:

    ( I am using NetBeans 8.0.2 )

    ( I have a Project Group based on root directory, and I imported all projects under that directory. )

    1. Use Explorer to move (: copy if paranoid :) the projects' directories to the new location.
    2. Edit the file C:\Users\<yourName>\AppData\Roaming\NetBeans\8.2.0\config\Preferences\org\netbeans\modules\projectui\groups\<theGroup>.properties
    3. Change the path entry to the new location.
    4. Open NetBeans and make sure Files / Project Groups ... is looking at the group of projects you think it is.
    0 讨论(0)
  • 2020-12-06 00:34

    Instructions for Mac, based on some of the answers above:

    Make sure NetBeans is closed.

    On a Mac, the edit ~/.netbeans/7.0/config/Preferences/org/netbeans/modules/projectui.properties

    Look for a line that starts with projectsFolder=

    Example:

    projectsFolder=/Users/<your username>/NetBeansProjects

    If this line does not exist, add it with the full path to the directory you want to use. And of course, if it already exists just edit it to your desired path.

    0 讨论(0)
提交回复
热议问题