Java 如何将 Eclipse C++ 添加到 Eclipse classic?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4175194/
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
How do I add Eclipse C++ to Eclipse classic?
提问by PortalHymaner
I have Eclipse Classic for my Java classes, and I have Visual Studio as well, but I'd much rather keep using Eclipse. Can anyone help?
我的 Java 类有 Eclipse Classic,我也有 Visual Studio,但我更愿意继续使用 Eclipse。任何人都可以帮忙吗?
I tried adding the addons from within Eclipse but it didn't work properly.
我尝试从 Eclipse 中添加插件,但它无法正常工作。
采纳答案by Pablo Santa Cruz
You need the Eclipse CDT project plugin.
您需要Eclipse CDT 项目插件。
Having said that, unless you need platform independence, don't give up on Visual Studio. For C/C++ Visual Studio is way, way, way better and faster than Eclipse. (IMHO).
话虽如此,除非您需要平台独立性,否则不要放弃 Visual Studio。对于 C/C++,Visual Studio 比 Eclipse 更好更快。(恕我直言)。
回答by Alexis Dufrenoy
If you work with Windows, I suggest you use 2 different instances of Eclipse. As Eclipse is a portable app (no registry), it is easy to use 2 different instances, or more.
如果您使用 Windows,我建议您使用 2 个不同的 Eclipse 实例。由于 Eclipse 是一个便携式应用程序(没有注册表),因此很容易使用 2 个或更多不同的实例。
You can also go to Help -> Install new software, choose the Eclipse update site and then choose the C/C++ Development Tools package.
您也可以转到帮助 -> 安装新软件,选择 Eclipse 更新站点,然后选择 C/C++ 开发工具包。
Edit:I have just seen LarsH's question. I should have added that the C/C++ Development Tools package is an Eclipse standard issue and can be added from official Eclipse update sites, like the Juno update site: http://download.eclipse.org/releases/juno/(it should already be in your update sites list if you are using Eclipse Juno). If everything else fails, you can even download the C/C++ tools here: http://www.eclipse.org/cdt/downloads.phpand install them yourself.
编辑:我刚刚看到了 LarsH 的问题。我应该补充一点,C/C++ 开发工具包是 Eclipse 标准问题,可以从官方 Eclipse 更新站点添加,例如 Juno 更新站点:http: //download.eclipse.org/releases/juno/(它应该如果您使用的是 Eclipse Juno,则已经在您的更新站点列表中)。如果其他一切都失败了,您甚至可以在这里下载 C/C++ 工具:http: //www.eclipse.org/cdt/downloads.php并自行安装。
回答by Margus
I dear myself to say, that seems unwise. As you get plugins and write quite a few projects, you will have increased load times. At least my personal preference is to use multiples instances of eclipse.
我很想说,这似乎是不明智的。当您获得插件并编写相当多的项目时,您将增加加载时间。至少我个人的偏好是使用多个 eclipse 实例。
Link for c/c++-developers version of eclipse: ( link)
Eclipse 的 c/c++-developers 版本的链接:(链接)
You can autoformat .net with CTRL-A
and then CTRL-K+F
. If you use Autohotkey you can create a script that is executed when you press CTRL-SHIFT-F
and remap it to:
您可以使用CTRL-A
和 然后自动格式化 .net CTRL-K+F
。如果您使用 Autohotkey,您可以创建一个在您按下时执行的脚本CTRL-SHIFT-F
并将其重新映射到:
Send, {CTRLDOWN}a{CTRLUP}{CTRLDOWN}kf{CTRLUP}
I also had thought for a long time, that .net IDE designers where not mentally erudite enough to understand the importance of autoformat, to include it. I got so pissed, that I wrote one myself and ran it as external program. Only reacently I found out about CTRL-K+F
.:D
我也想了很长时间,.net IDE 设计者在思想上不够博学,无法理解自动格式化的重要性,将其包括在内。我非常生气,以至于我自己写了一个并将其作为外部程序运行。直到最近我才知道CTRL-K+F
。:D