This article is simply a handy note for myself to remember how to change working directory of netbeans and eclipse.
Eclipse
For GUI, go to File->Switch Workspace, and change another appropriate folder.
Alternatively, edit $ECLIPSE/configuration/config.ini, looking for
osgi.instance.area.default=@user.home/EclipseProjects
attribute and replace it with another directory.
Netbeans
No idea how to change it with GUI.
However the config file is located in ~/.netbeans/$VERSION/config/Preferences/org/netbeans/modules/projectui.properties, set a new location for
projectsFolder=@user.home/NetbeansProjects
attribute.