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 if it's relevant but I have the PHP Netbeans distro.
是否可以更改Netbeans 7中的默认项目目录?我不知道它是否相关,但我有PHP Netbeans发行版。
Thanks!
谢谢!
10 个解决方案
#1
31
In new netbeans 7 search file: D:\Users\YourWindowsUserName\.netbeans\7.0\config\Preferences\org\netbeans\modules\projectui.properties
在新的netbeans搜索文件:D:\用户\你的windowsusername \.netbeans\7.0\config\ \Preferences\org\netbeans\ netbeans\ \netbeans modules\project project .properties
Delete: *RecentProjectsDisplayNames.*8, *RecentProjectsIcons.*8, *recentProjectsURLs.*8 for cleaning recent projects.
删除:* RecentProjectsDisplayNames。* 8 * RecentProjectsIcons。* 8 * recentProjectsURLs。*8用于清洁近期项目。
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:
找出项目的位置。用于各种操作系统的最新版本NetBeans的属性文件:
http://wiki.netbeans.org/FaqWhatIsUserdir
http://wiki.netbeans.org/FaqWhatIsUserdir
#2
9
Under Linux, you can change it in the Netbeans configuration directory: .netbeans/6.8/config/Preferences/org/netbeans/modules/projectui.properties
在Linux下,您可以在Netbeans配置目录中更改它:.netbeans/6.8/config/Preferences/org/netbeans/modules/projectui.properties
#3
5
I believe that Netbeans will remember where your last project was created and uses that as its default. So if you create a project and choose a different directory than the default, then that directory will now be the default.
我相信Netbeans会记住您上一个项目是在哪里创建的,并将其作为默认。因此,如果您创建一个项目并选择一个与默认目录不同的目录,那么该目录将成为默认目录。
#4
5
If you are asking for how to set the main project so that it runs by default and is debugged by default, then:
如果您正在询问如何设置主项目,使其在默认情况下运行并在默认情况下调试,则:
Run > Set Main Project, and select your project.
运行>设置主项目,并选择您的项目。
This will highlight in bold the name of the folder of your project in the files windows, usually on your the left hand side.
这将突出显示在文件窗口中项目文件夹的名称,通常在您的左侧。
#5
4
Instructions for Mac, based on some of the answers above:
Mac的说明,基于上面的一些答案:
Make sure NetBeans is closed.
确保NetBeans关闭。
On a Mac, the edit ~/.netbeans/7.0/config/Preferences/org/netbeans/modules/projectui.properties
在Mac上,编辑~/.netbeans/7.0/config/Preferences/org/netbeans/modules/projectui.properties
Look for a line that starts with projectsFolder=
查找以projectsFolder=开头的行
Example:
例子:
projectsFolder=/Users/<your username>/NetBeansProjects
projectsFolder = /用户/ <用户名> / 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.
如果这一行不存在,将它与要使用的目录的完整路径一起添加。当然,如果它已经存在,只需将它编辑到所需的路径。
#6
3
In newer versions, right-click on the project you want to move in the 'Projects' tab, and then click 'Move'. This will allow you to move the project to a new directory.
在较新的版本中,右键单击要在“Projects”选项卡中移动的项目,然后单击“move”。这将允许您将项目移动到新的目录。
#7
2
If you just want to move the projects in a Project Group
, then do this:
如果你只是想在一个项目组中移动项目,那么这样做:
( I am using NetBeans 8.0.2 )
(我使用的是NetBeans 8.0.2)
( I have a Project Group
based on root directory, and I imported all projects under that directory. )
(我有一个基于根目录的项目组,我导入了该目录下的所有项目。)
- Use Explorer to move (: copy if paranoid :) the projects' directories to the new location.
- 使用资源管理器移动(:复制如果偏执狂:)项目的目录到新的位置。
- Edit the file
C:\Users\<yourName>\AppData\Roaming\NetBeans\8.2.0\config\Preferences\org\netbeans\modules\projectui\groups\<theGroup>.properties
- 编辑该文件C:\Users\ < yourName > \ AppData \漫游\ NetBeans \ 8.2.0 \ config \偏好\ projectui \ \ org \ NetBeans \模块组\ <集团> . properties
- Change the path entry to the new location.
- 将路径条目更改为新位置。
- Open NetBeans and make sure
Files / Project Groups ...
is looking at the group of projects you think it is. - 打开NetBeans并确保文件/项目组…看看你认为它是什么项目。
#8
1
On my Windows 7 it's Users\\AppData\Roaming\NetBeans\7.2.1\config\Preferences\org\netbeans
在我的Windows 7上,它是用户\应用程序数据\漫游\NetBeans\ \7.2.1\config\Preferences\org\ NetBeans
#9
1
I use Netbeans 7.0.1 on Windows 7.
我在Windows 7上使用Netbeans 7.0.1。
For me the projecui.properties file was in C:\users\.netbeans\7.0\config\Preferences\org\netbeans\modules\
directory. About the fourth line down is a property called projectsFolder
. Just change that to the folder you want and you're done!
对我来说,projecui。属性文件在C:\users .netbeans\7.0\config\Preferences\org\netbeans\modules目录中。第4行下面是一个名为projectsFolder的属性。只要把它改成你想要的文件夹就可以了!
Caveat: this is Java, so if you have a backslash, you have to double it up (C:\folder
would be C:\\folder
). It seems like I did this before within the application itself, but I could not for the life of me find it. I realize this is an old thread, but it was my first hit googling my problem, so I'm sure others will as well. -Mike
注意:这是Java,所以如果你有一个反斜杠,你必须把它翻倍(C:\文件夹将是C:\\文件夹)。似乎我以前在应用程序本身中就做过这个,但是我无论如何也找不到它。我知道这是一条古老的线索,但这是我第一次用谷歌搜索我的问题,所以我相信其他人也会这么做。迈克
#10
0
On Windows you could find that file in:
在Windows中,您可以在以下文件中找到该文件:
[%USERPROFILE%|$Env:UserProfile]\.netbeans\...\projectui.properties
Found this, http://wiki.netbeans.org/FaqAlternateUserdir, but did not have success with it. Neither the command line value nor netbeans_default_userdir from netbeans.conf were persisted to projectui.properties.
找到这个,http://wiki.netbeans.org/faqgenerator euserdir,但是没有成功。netbeans的命令行值和netbeans_default_userdir都不是。conf被持久化到projectui.properties中。
#1
31
In new netbeans 7 search file: D:\Users\YourWindowsUserName\.netbeans\7.0\config\Preferences\org\netbeans\modules\projectui.properties
在新的netbeans搜索文件:D:\用户\你的windowsusername \.netbeans\7.0\config\ \Preferences\org\netbeans\ netbeans\ \netbeans modules\project project .properties
Delete: *RecentProjectsDisplayNames.*8, *RecentProjectsIcons.*8, *recentProjectsURLs.*8 for cleaning recent projects.
删除:* RecentProjectsDisplayNames。* 8 * RecentProjectsIcons。* 8 * recentProjectsURLs。*8用于清洁近期项目。
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:
找出项目的位置。用于各种操作系统的最新版本NetBeans的属性文件:
http://wiki.netbeans.org/FaqWhatIsUserdir
http://wiki.netbeans.org/FaqWhatIsUserdir
#2
9
Under Linux, you can change it in the Netbeans configuration directory: .netbeans/6.8/config/Preferences/org/netbeans/modules/projectui.properties
在Linux下,您可以在Netbeans配置目录中更改它:.netbeans/6.8/config/Preferences/org/netbeans/modules/projectui.properties
#3
5
I believe that Netbeans will remember where your last project was created and uses that as its default. So if you create a project and choose a different directory than the default, then that directory will now be the default.
我相信Netbeans会记住您上一个项目是在哪里创建的,并将其作为默认。因此,如果您创建一个项目并选择一个与默认目录不同的目录,那么该目录将成为默认目录。
#4
5
If you are asking for how to set the main project so that it runs by default and is debugged by default, then:
如果您正在询问如何设置主项目,使其在默认情况下运行并在默认情况下调试,则:
Run > Set Main Project, and select your project.
运行>设置主项目,并选择您的项目。
This will highlight in bold the name of the folder of your project in the files windows, usually on your the left hand side.
这将突出显示在文件窗口中项目文件夹的名称,通常在您的左侧。
#5
4
Instructions for Mac, based on some of the answers above:
Mac的说明,基于上面的一些答案:
Make sure NetBeans is closed.
确保NetBeans关闭。
On a Mac, the edit ~/.netbeans/7.0/config/Preferences/org/netbeans/modules/projectui.properties
在Mac上,编辑~/.netbeans/7.0/config/Preferences/org/netbeans/modules/projectui.properties
Look for a line that starts with projectsFolder=
查找以projectsFolder=开头的行
Example:
例子:
projectsFolder=/Users/<your username>/NetBeansProjects
projectsFolder = /用户/ <用户名> / 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.
如果这一行不存在,将它与要使用的目录的完整路径一起添加。当然,如果它已经存在,只需将它编辑到所需的路径。
#6
3
In newer versions, right-click on the project you want to move in the 'Projects' tab, and then click 'Move'. This will allow you to move the project to a new directory.
在较新的版本中,右键单击要在“Projects”选项卡中移动的项目,然后单击“move”。这将允许您将项目移动到新的目录。
#7
2
If you just want to move the projects in a Project Group
, then do this:
如果你只是想在一个项目组中移动项目,那么这样做:
( I am using NetBeans 8.0.2 )
(我使用的是NetBeans 8.0.2)
( I have a Project Group
based on root directory, and I imported all projects under that directory. )
(我有一个基于根目录的项目组,我导入了该目录下的所有项目。)
- Use Explorer to move (: copy if paranoid :) the projects' directories to the new location.
- 使用资源管理器移动(:复制如果偏执狂:)项目的目录到新的位置。
- Edit the file
C:\Users\<yourName>\AppData\Roaming\NetBeans\8.2.0\config\Preferences\org\netbeans\modules\projectui\groups\<theGroup>.properties
- 编辑该文件C:\Users\ < yourName > \ AppData \漫游\ NetBeans \ 8.2.0 \ config \偏好\ projectui \ \ org \ NetBeans \模块组\ <集团> . properties
- Change the path entry to the new location.
- 将路径条目更改为新位置。
- Open NetBeans and make sure
Files / Project Groups ...
is looking at the group of projects you think it is. - 打开NetBeans并确保文件/项目组…看看你认为它是什么项目。
#8
1
On my Windows 7 it's Users\\AppData\Roaming\NetBeans\7.2.1\config\Preferences\org\netbeans
在我的Windows 7上,它是用户\应用程序数据\漫游\NetBeans\ \7.2.1\config\Preferences\org\ NetBeans
#9
1
I use Netbeans 7.0.1 on Windows 7.
我在Windows 7上使用Netbeans 7.0.1。
For me the projecui.properties file was in C:\users\.netbeans\7.0\config\Preferences\org\netbeans\modules\
directory. About the fourth line down is a property called projectsFolder
. Just change that to the folder you want and you're done!
对我来说,projecui。属性文件在C:\users .netbeans\7.0\config\Preferences\org\netbeans\modules目录中。第4行下面是一个名为projectsFolder的属性。只要把它改成你想要的文件夹就可以了!
Caveat: this is Java, so if you have a backslash, you have to double it up (C:\folder
would be C:\\folder
). It seems like I did this before within the application itself, but I could not for the life of me find it. I realize this is an old thread, but it was my first hit googling my problem, so I'm sure others will as well. -Mike
注意:这是Java,所以如果你有一个反斜杠,你必须把它翻倍(C:\文件夹将是C:\\文件夹)。似乎我以前在应用程序本身中就做过这个,但是我无论如何也找不到它。我知道这是一条古老的线索,但这是我第一次用谷歌搜索我的问题,所以我相信其他人也会这么做。迈克
#10
0
On Windows you could find that file in:
在Windows中,您可以在以下文件中找到该文件:
[%USERPROFILE%|$Env:UserProfile]\.netbeans\...\projectui.properties
Found this, http://wiki.netbeans.org/FaqAlternateUserdir, but did not have success with it. Neither the command line value nor netbeans_default_userdir from netbeans.conf were persisted to projectui.properties.
找到这个,http://wiki.netbeans.org/faqgenerator euserdir,但是没有成功。netbeans的命令行值和netbeans_default_userdir都不是。conf被持久化到projectui.properties中。