Eclipse 替代 VS .sln 文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/55903/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-13 16:09:07  来源:igfitidea点击:

Eclipse alternative to VS .sln files

eclipse

提问by Chad Meyers

I've recently had to switch from Visual Studio to Eclipse CDT.
It would seem that Eclipse "workspaces" are not quite like VS solution files.
Eclipse workspaces use the .metadatafolder for managing multiple projects, but there doesn't seem to be a simple distinction between user settings or IDE preferences and project/solution settings.

我最近不得不从 Visual Studio 切换到 Eclipse CDT。
Eclipse“工作区”似乎不太像VS解决方案文件。
Eclipse 工作区使用该.metadata文件夹来管理多个项目,但用户设置或 IDE 首选项与项目/解决方案设置之间似乎没有简单的区别。

What I want is a way to group a collection of related (and dependent) projects together and have that data live in source control without all the other user specific stuff that developers don't need to share. You know, like a .slnfile in Visual Studio.

我想要的是一种将一组相关(和依赖)项目组合在一起的方法,并使这些数据存在于源代码控制中,而无需开发人员不需要共享的所有其他用户特定的东西。您知道,就像.slnVisual Studio 中的文件一样。

Does Eclipse just not work this way? (And if not, then why not?)

Eclipse 就不能这样工作吗?(如果没有,那为什么不呢?)

采纳答案by JProgrammer

Yes you are right eclipse does not manage projects in the same way VS does with solution files. However for putting a group of related projects into a VCS eclipse has the concept of a Team Project Setavailable in File->Export then under the Team folder there is Team Project Set.

是的,您说得对,Eclipse 不像 VS 处理解决方案文件那样管理项目。然而,为了将一组相关项目放入 VCS,eclipse 有一个团队项目集的概念,可在文件->导出中使用,然后在团队文件夹下有团队项目集。

回答by Robse

Like JProgrammer said there is Team Project Set. You can send your colleagues a bunch of .psf files, works similar to VS.NET. I can only say we have good expierience with this feature.

就像 JProgrammer 所说的,有 Team Project Set。您可以向您的同事发送一堆 .psf 文件,其工作原理类似于 VS.NET。我只能说我们对这个功能有很好的体验。

回答by Daren Thomas

I often find IDE's have a preferred way to work. Sure, you might be able to get the IDE to do it your way, but you'll probably end up fighting it all the way.

我经常发现 IDE 有一种首选的工作方式。当然,您也许可以让 IDE 以您的方式完成它,但您最终可能会一直与它作斗争。

Try to use your IDE like their makers intended you to. They have made presumptions on how you are supposed to do your work. They have optimized the user experience according to those presumptions.

尝试像他们的制造商希望你那样使用你的 IDE。他们对你应该如何做你的工作做出了假设。他们根据这些假设优化了用户体验。

Go with the flow. Anything else will make you gnarly, bitter, wrinkly and give you gastly breath!

顺其自然。其他任何东西都会让你变得粗糙、苦涩、皱纹,让你喘不过气来!

Corollary: If you can, choose the IDE that makes the same presumptions about workflow as you do!

推论:如果可以,请选择与您对工作流做出相同假设的 IDE!