C++ 的 CDT 轻量级替代方案在 Eclipse 中编辑

发布于 2024-08-23 11:22:17 字数 635 浏览 4 评论 0原文

几年来,我一直使用 Eclipse 作为我的通用文件编辑器,无论我使用哪种语言(主要包括 C++、Matlab 和 python,还有一些有趣的 XML)。

然而,我最近得到了一台新机器,配备了最新的 Eclipse,而我以前使用过的美妙的 Colorer 插件崩溃了(这是一个单独的问题,显然是我的设置所特有的 - 我会尝试调试它,但与此同时我有工作要做)

所以我转而使用 CDT for C++,并且编辑器遇到了严重的性能问题,尤其是在复制粘贴或撤消内容时。我理解为什么 CDT 如此繁重,但我不想要一个完整的 C++ IDE - 只是一些可以做不错的语法突出显示的东西。

是否有任何轻量级语法突出显示 CDT(或 Colorer)的替代方案,可以在 C++ 中出色地完成工作,而无需(对我来说)不必要的代码完成层和所有那些爵士乐?

或者,或者,我可以关闭任何想法,将 CDT 变成一个闪电般快速的基本编辑器(我已经关闭了拼写检查器和索引器)

编辑说我不是在寻找Eclipse 的替代编辑器,除了可能作为短期修复。如果这个问题无法解决,而我必须学习/配置新的东西,我将切换到 emacs(出于各种非宗教原因:它几乎是所有地方的标准,我的同事已经使用它,并且我们标准开发设置的负责人支持它,所以它对我来说确实是最合理的替代品)但实际上,我更喜欢修复我可怜的 Eclipse。

For a few years now, I've been using Eclipse as my all-purpose file editor, regardless of the language I use (which mainly includes C++, Matlab and python, with some XML thrown in for fun).

However, I recently got a new machine with more a recent Eclipse, and the wonderful Colorer plugin, which I previously used, crashes (Which is a separate issue that's apparently specific to my setup - I'll try debug it, but in the meantime I have work to do)

So I've switched to CDT for C++ instead, and I'm having serious performance issues with the editor, especially when copy-pasting or undoing stuff. I understand why CDT is so heavy, but I don't want a full C++ IDE - just something that does decent syntax highlighting.

Are there any lightweight syntax highlighting alternatives to CDT (or Colorer) that do a decent job at C++, without the needless (for me) layer of code completion and all that jazz?

Or, alternatively, any ideas of things I can turn off to turn CDT into a lightning-fast bare-bones editor (I've already turned off the spell-checker and the indexer)

Edited to say that I'm not looking for a replacement editor for Eclipse, except maybe as a short-time fix. If this problem turns out to be unsolvable and I have to learn/configure something new, I'm going to switch to emacs (for all kinds of non-religious reason: it's pretty much standard everywhere, my colleagues already use it, and the person in charge of our standard development setup supports it, so it's really the most reasonable replacement for me) But really, I'd prefer a fix to my poor Eclipse.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

触ぅ动初心 2024-08-30 11:22:17

我终于找到了解决性能问题的方法。

CDT 中有一个“可扩展性”模式,当您的文件超过一定行数时(在“首选项”-“C/C++”-“编辑器”-“可扩展性”下),该模式就会启动。通过将默认大小更改为 1,我可以禁用似乎导致问题的“编辑器实时解析”,并获得显着的性能提升。

I've finally figured out a work-around to my performance issue.

There is a "scalability" mode in CDT that kicks in when your file is above a certain number of lines (under Preferences-C/C++-Editor-Scalability). By changing the default size to 1, I can disabled the "editor live parsing" that seems to be causing the problem, and get a significant performance boost.

锦爱 2024-08-30 11:22:17

天哪,如果您使用的是 C++,那么 Netbeans 处理 C++ 的自动完成功能是最好的 - 缺少 Visual Studio。

Jheez if you are using C++ then Netbeans handles Autocomplete for C++ the best -- short of visual studio.

从来不烧饼 2024-08-30 11:22:17

我不确定这是否对您有帮助,因为我不知道您的操作系统,并且您已经找到了解决问题的“解决方案”,但是 Linux 下用于 C++ 的轻量级、快速且功能丰富的 IDE 是安尤塔
也许对其他人有用

I'm not sure if this will be of help for you, because I don't know your OS and you already found a "solution" for your issue, but a good lightweight, fast, and feature rich IDE for C++ under Linux is Anjuta
Maybe be usefull for anyone else

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文