Setting preferences for all Eclipse workspaces

前端 未结 1 1432
有刺的猬
有刺的猬 2020-12-23 19:41

How can I apply Eclipse preferences to all Eclipse workspaces?

For example if I go:

Window -> Preferences -> General -> Keys -> Add a Short         


        
相关标签:
1条回答
  • 2020-12-23 20:20

    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.

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