[Tools] Eclipse使用小技巧-持续更新

时间:2023-03-08 15:46:21
[Tools] Eclipse使用小技巧-持续更新

[背景]

使用之中发现一些eclipse使用的小技巧,记录下来供以后查阅

 

  1. Eclipse保存preferences,并导入到其他workspaces

    The Export wizard can be used to export preferences from the Workbench to the local file system.

    To export a preference file:

  • Select File > Export .
  • In the Export wizard select General > Preferences and click Next .
  • Select one of the following:
    • Export all to add all of the preferences to the file.
    • Choose specific preferences to export to add only specified preferences to the file.
  • Click Browse... and locate the preferences file on the local file system.
  • Click Finish

To import a preference file:

  • Select File > Import .
  • In the Import wizard select General > Preferences and click Next .
  • Click Browse... and locate the Preferences file on the local file system.
  • Select one of the following:
    • Import all to accept all of the preferences defined in the file.
    • Choose specific preferences to import to select only specified preferences defined in the file.
  • Click Finish .

参考:http://eric-gcm.iteye.com/blog/1491184

  1. 在Eclipse里使用不同的workspaces来对不同类型的项目进行管理,例如学习区、主干项目、分支项目、发布项目等,这样有利于对项目进行管理避免出现修改错误