How can I apply Eclipse preferences to all Eclipse workspaces?
For example if I go:
Window -> Preferences -> General -> Keys -> Add a Shortcut
I would like to use that shortcut in all of my Eclipse workspaces (different projects). Is there a way to apply preferences to all workspaces?
I would also like to configure what perspectives come up by default when I start a new workspace.
If you want preserve all your settings, simply copy the
.metadata/.plugins/org.eclipse.core.runtime/.settings
directory into your desired workspace directory
You can also export the preferences you set in the template workspace and then import them into other workspaces. This is the preferred method supported by Eclipse.
Go to
File->Export then choose General->Preferences
click Next then select the “Export all” radio button and fill in or browse to a file path where you want to save the preferences . Click Finish and your preferences are exported to that file.
Select
File->Switch Workspace,>… to switch to a different workspace.
When Eclipse restarts in the new workspace select File->Import then General->Preferences click Next and browse to your saved preferences file and click Finish to import your preferences into the current workspace.
Related
How can I copy eclipse shortcuts from one eclipse to another??
I am trying to move from eclipse indigo to eclipse kepler, how can I copy all my custom keyboard shortcuts to my eclipse kepler. . . .??
Export your Eclipse settings: http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Ftasks%2Ftimpandexp.htm
From the Eclipse page:
To import a preference file:
Select command link File > Import.
In the Import wizard select General > Preferences and click Next.
Click Browse... and locate the Preferences file on the file system.
Click Import all to accept all of the preferences defined in the
file.
If you want to import only few preferences, choose them from the
list.
Click Finish.
The Export wizard can be used to export preferences from the Workbench to the file system.
To export a preference file:
Select command link File > Export.
In the Export wizard select General > Preferences and click Next.
Click Export all to add all of the preferences to the file.
If you want to export only few preferences, choose them from the
list.
Click Browse... and locate the preferences file on the file system.
Click Finish
There is a possibility to export different preferences:
http://looksok.wordpress.com/2012/11/24/custom-eclipse-shortcuts-import-export/
I know its a silly question but i am stuck into it from 2 hours..Can any body tell me how should i enable the dialog which opens at the time we start eclipse and we choose workspace location from there.
See I want this window to be displayed first when eclipse starts
By mistake I have checked "Use this as the default and do not ask again".
Please guide me how to show up this dialog again
You can find it here :
Menu: Window -> Preferences -> General -> Startup and Shutdown -> Workspaces -> Prompt for workspace on startup
Eclipse preferences has a lot of options. You can search for specific options by typing in the filter text box at the top of the preferences dialog.
If you type in 'startup' for instance the list will be much shorter.
window > preferences > general > startup and shutdown > workspaces
then check 'Prompt for workspace on startup'
If your workspace is corrupted and Eclipse doesn't startup with your currently pre-selected workspace, you may edit SHOW_WORKSPACE_SELECTION_DIALOG=false to SHOW_WORKSPACE_SELECTION_DIALOG=true
which is located in file
C:\PathToEclipse\eclipse\configuration\.settings\org.eclipse.ui.ide.prefs
before you start the IDE.
I have .py and .js files in my Eclipse project for various reasons, but I don't ever want to execute them by double-clicking on them in Eclipse -- which is the default Eclipse behavior.
Is there a way I can change this default behavior so it just opens files in the Eclipse text editor, rather than executes the system "Open" command?
Open the main Preferences window and go to
General->Editors->File Associations
In Eclipse, On the menu bar at the top, go to
Window -> Preferences -> General -> Editors -> File Associations
Set the Open unassociated files with to Text Editor
This opens your files with the Eclipse text editor on double click.
I don't see any menu item I can use to create a new workspace.
What should I use to create a new workspace and move some of the projects from existing default workspace to a new workspace?
I am using Windows with Eclipse 3.7.
I use File -> Switch Workspace -> Other... and type in my new workspace name.
(EDIT: Added the composite screen shot.)
Once in the new workspace, File -> Import... and under General choose "Existing Projects into Workspace. Press the Next button and then Browse for the old projects you would like to import. Check "Copy projects into workspace" to make a copy.
In Window->Preferences->General->Startup and Shutdown->Workspaces, make sure that 'Prompt for Workspace on startup' is checked.
Then close eclipse and reopen.
Then you'll be prompted for a workspace to open. You can create a new workspace from that dialogue.
Or File->Switch Workspace->Other...
You can create multiple workspaces in Eclipse. You have to just specify the path of the workspace during Eclipse startup. You can even switch workspaces via File→Switch workspace.
You can then import project to your workspace, copy paste project to your new workspace folder, then
File→Import→Existing project in to workspace→select project.
Every time I create a new workspace in Eclipse I have to turn off the spell checking via Preferences. (Preferences->General->Editors->Text Editors->Spelling->Enable Spell Checking)
This is very irritating. How do I turn off the spell checking for good? I.e. the spell checker is disabled when I create a new workspace and I can turn it on should I want to use it.
It's not a perfect fix, but you can copy existing workspace preferences into any workspace. I keep a separate .epf (Eclipse preferences file, I guess) that I just import into every new workspace I create:
File → Import... → General → Preferences → Next > From preference file
Related
Importing/Exporting Project Preferences
Preferences->General->Editors->Text Editors->Spelling
Uncheck the box "Enable spell checking"
There are some ways for sharing preferences, but it doesn't come with the platform.
The one I use is now available as an attachment to https://bugs.eclipse.org/bugs/show_bug.cgi?id=334016 or more particular as attachment https://bugs.eclipse.org/bugs/attachment.cgi?id=196866
Install into your Eclipse.
Then you can export selected preferences to an .epf file.
Also add a preference (!) in Preferences > General > Common Preferences which will share your settings across newly created workspaces.
I use this all the time and though it is not perfect, it does save a lot of effort in keeping my preferences aligned across workspaces.
If you are writing Java code, Window -> Preferences -> Java -> JDT Spelling