DoubleLi

qq: 517712484 wx: ldbgliet

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
  4737 随笔 :: 2 文章 :: 542 评论 :: 1615万 阅读
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

Clean out Eclipse workspace metadata

http://stackoverflow.com/questions/11768106/clean-out-eclipse-workspace-metadata

There is no easy way to remove the "outdated" stuff from an existing workspace. 
Using the "clean" parameter will not really help, as many of the files you refer to are "free form data", 
only known to the plugins that are no longer available.

Your best bet is to optimize the re-import, where I would like to point out the following:

  • When creating a new workspace, you can already choose to have some settings being copied from the current to the new workspace.
  • You can export the preferences of the current workspace (using the Export menu) and re-import them in the new workspace.
  • There are lots of recommendations on the Internet to just copy the
    ${old_workspace}/.metadata/.plugins/org.eclipse.core.runtime/.settings folder from the old to the new workspace. 
    This is surely the fastest way, but it may lead to weird behaviour, because some of your plugins may depend on these settings 
    and on some of the mentioned "free form data" stored elsewhere. 
    (There are even people symlinking these folders over multiple workspaces, but this really requires to use the same plugins on all workspaces.)
  • You may want to consider using more project specific settings than workspace preferences in the future. 
    So for instance all the Java compiler settings can either be set on the workspace level or on the project level. 
    If set on the project level, you can put them under version control and are independent of the workspace.

 

posted on   DoubleLi  阅读(344)  评论(0编辑  收藏  举报
编辑推荐:
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 单线程的Redis速度为什么快?
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 展开说说关于C#中ORM框架的用法!
历史上的今天:
2014-02-24 常见MFC UI界面库
2014-02-24 STL的string和wstring
2014-02-24 深入理解c++中char*与wchar_t*与string以及wstring之间的相互转换
点击右上角即可分享
微信分享提示