saving eclipse perspective layout and other things

若如初见. 提交于 2019-12-02 15:53:40

Two solutions :

  1. MENU -> File -> Switch workspace -> Other -> Copy Settings of
    • Workbench Layout
    • Working Sets
  2. Copy/backup and replace following folder to new created Workspace.
    • [workspace]/.metadata/.plugins/org.eclipse.ui.workbench/
    • [workspace]/.metadata/.plugins/org.eclipse.core.runtime/.settings/

Personally I prefer (2).

As of Eclipse Neon (and possibly Mars, as well), you can copy the following two directories, to share your workbench and settings/preferences amongst your different workspaces:

    [workspace]/.metadata/.plugins/org.eclipse.core.runtime/.settings
    [workspace]/.metadata/.plugins/org.eclipse.e4.workbench

(Side Note: The Copy Settings dialog would not work for me, as it wouldn't permit me to select either checkbox.)

Good info here - 'Share Eclipse perspective layouts across multiple workspaces'

I use their 'Method #2', listed below.

Method 2: Use Copy Settings

The other method of saving your window layout is to use the Copy Settings feature when switching to another workspace.

  • Open the workspace that contains your customized layout
  • Select File > Switch Workspace > Other… which will open a dialog prompting you for an existing/new workspace
  • Select the workspace, then click the Copy Settings collapsible section
  • Select the Workbench Layout checkbox and click Ok
  • Your workspace will open and should reflect the customised layout of the previous workspace.

Here’s what the dialog looks like:

Give it a shot, quite easy!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!