编辑 C++ 的好方法是什么? 在 Mac OS X 上?

发布于 2024-08-02 00:56:39 字数 207 浏览 5 评论 0原文

我是一年级学生。 科学。 学生,正在寻找在 Mac 上开发 C++ 的最佳方法。 我有 Xcode 和 Textmate。

各自的优点/缺点是什么? 还有更好的吗?

我不喜欢使用整个项目来使用 Xcode 运行程序。 这是唯一的方法吗,还是我错了?

另外,有没有办法更改 xcode 中 .cpp 文件中包含的默认文本?

I am a first year Comp. Sci. student and am looking for the best way to develop C++ on a Mac. I have Xcode and Textmate.

What are the benefits/negatives of each? Are there any better ones?

I am not a fan of having to use a whole project to run programs with Xcode. Is this the only way to do it, or am I mistaken?

Also, is there a way to change the default text that is included in a .cpp file in xcode?

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

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

发布评论

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

评论(10

香橙ぽ 2024-08-09 00:56:39

在 Mac OS X 上编辑 C++ 的好方法是什么?

用你的头。

两者都尝试一下。 文本编辑器取决于个人品味。 看看 vimemacs 上的火焰,让太阳显得苍白。

唯一能够告诉您什么是最适合您的文本编辑器的人就是

What is a good way to edit C++ on Mac OS X?

With your head.

Try both. Text editors are a matter of personal taste. See the flames over vim vs. emacs that make the Sun look pale.

The only one that can tell you what is the best text editor for you, is you.

清晨说晚安 2024-08-09 00:56:39

http://code.google.com/p/macvim/

我会深入研究并学习vim(或者 emacs,如果你真的想的话)。

编辑:你在 CS 方面已经领先 4 年多了。 我真的建议学习 vim 或 emacs,尤其是当你还在大学的时候。

http://code.google.com/p/macvim/

I would dig in and learn vim (or emacs if you really want to).

EDIT: You've got 4+ years ahead of you in CS. I really would suggest learning vim or emacs especially when you are still in university.

东风软 2024-08-09 00:56:39

使用 Xcode,您可以单独编辑每个文件,而不需要它们属于一个项目。 另外,您可以在 /Developer/Library/Xcode/File Templates 中查找 Xcode 使用的模板; 如果您认为合适,请随意攻击它们。

With Xcode you can edit each file separately, without needing them to belong to a project. Also, you can look in /Developer/Library/Xcode/File Templates for the templates used by Xcode; feel free to take a whack at them as you find suitable.

初见 2024-08-09 00:56:39

我是textmate的超级粉丝。 它给你很大的力量,但不会妨碍你。 您还可以尝试 Eclipse for C/C++

I'm a huge fan of textmate. It gives you a lot of power but doesn't get in your way. You could also try Eclipse for C/C++

内心旳酸楚 2024-08-09 00:56:39

我几乎只使用 Textmate,但公平地说,决定切换到 Textmate(来自 OS 9 天的 codewarrior)主要是因为 XCode 编辑器(当时名为 ProjectBuilder)在编辑较大文件时速度慢得令人烦恼。

我确信这些年来情况发生了很大变化,但我认为没有理由改变,所以我没有。

也就是说,XCode真正胜过Textmate的一点是集成了调试器,当你刚开始学习时,我认为拥有一个集成的调试器将帮助你快速了解代码的情况,并且将是一个很大的优势...

如果你有 Textmate,就尝试几个月吧,反正你是学生,你应该有足够的时间

I almost exclusively use Textmate, but to be fair the decision to switch to Textmate (coming from codewarrior in OS 9 days), was mainly because the XCode editor (then named ProjectBuilder) was annoyingly slow at editing larger files.

I'm sure that changed a lot over the years, but I see no reason to switch so I don't.

That said, one thing where XCode really outshines Textmate is the integration of a debugger, when you're just starting to learn, I think having an integrated debugger will help you quickly understand what's going on with your code, and will be a great advantage...

If you've got Textmate, just try em both for a few months, you're a student anyway, you should have plenty of time

我乃一代侩神 2024-08-09 00:56:39

Netbeans 是免费的,对于 C++、Java 和其他语言具有出色的自动完成功能。 它也是跨平台的。

http://www.netbeans.org/downloads/

Netbeans is free, has great auto-completion for C++, Java and others. It's also cross-platform.

http://www.netbeans.org/downloads/

听,心雨的声音 2024-08-09 00:56:39

我不喜欢使用整个项目来使用 Xcode 运行程序。 这是唯一的方法吗,还是我错了?

由于 MacOS X 构建于 Unix 之上,因此您可以使用 XCode 之外的许多开发工具。 最值得注意的是,有了一个好的 Terminal 应用程序,您可以直接使用 gcc 进行开发,完全绕过 XCode。 在这种情况下,我建议您找到一个您喜欢的源编辑器,例如 TextMate 或此处推荐的其他编辑器之一。 直接使用 gcc 可以让您快速周转,而您似乎正在寻找很少的开销。

I am not a fan of having to use a whole project to run programs with Xcode. Is this the only way to do it, or am I mistaken?

Because MacOS X is built on top of Unix you have many development tools available to you that lie outside of XCode. Most notably with a good Terminal application you can develop directly with gcc, bypassing XCode altogether. In that case I'd recommend finding a source editor you're comfortable with, such as TextMate or one of the others recommended here. Using gcc directly gives you the rapid turnaround with little overhead you seem to be looking for.

寄风 2024-08-09 00:56:39

我是 emacs 的忠实粉丝,因为:

1)它是可扩展的。 支持数千种语言,您有编辑 XML、HTML 等的模式。
2)它具有高度可配置性。 您可以设置自己的键绑定、更改缩进等。
3)它很强大。 它可以轻松地与编译器、调试器集成,使文本编辑变得非常快。

您也可以检查 vi、textmate 或 xcode。 他们都是很棒的编辑。 一切都取决于哪一种更适合您。

I'm a huge fan of emacs, because:

1) It's extensible. Thousands of languages are supported, you have modes for editing XML, HTML, etc.
2) It's highly configurable. You can set your own key bindings, change indentation, etc.
3) It's powerful. It integrates easily with compilers, debuggers, it makes text editing really quick.

You can check vi, textmate or xcode too. They're all great editors. It all comes to which one works better for you.

滥情空心 2024-08-09 00:56:39

我非常喜欢 Xcode。 我不确定你为什么排除它。 其实没那么复杂。

I quite like Xcode. I'm not sure why you ruled it out. It's really not that complicated.

莫相离 2024-08-09 00:56:39

我最近使用了 SublimeText,它很好而且速度很快。 试一试。

I recently used SublimeText it is nice and fast. Give it a try.

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