简体   繁体   English

为C ++开发设置Gedit

[英]Setup Gedit For C++ Development

I'm starting in C++ development, but i like to use Gedit for writing the files, but like for Ruby on Rails and many other languages, are some tools and configurations for Gedit that makes develop more easy and comfortable, and another question, what is the best for C++, SVN, CVS, Git and others...? 我开始从事C ++开发,但我喜欢使用Gedit编写文件,但是对于Ruby on Rails和许多其他语言,Gedit的一些工具和配置使得开发更容易和舒适,另一个问题,是什么对C ++,SVN,CVS,Git等人来说是最好的......? Thanks, and sorry about my english! 谢谢,抱歉我的英文!

The two most important plugins for Gedit are "External Tools" (allows you to run make or whatever other command you want with a keystroke) and "Snippets" (avoids retyping boilerplate code). Gedit最重要的两个插件是“外部工具”(允许您通过击键运行make或其他任何命令)和“Snippets”(避免重新输入样板代码)。 Also, have a look at http://live.gnome.org/Gedit/Plugins , you will probably find something useful. 另外,看看http://live.gnome.org/Gedit/Plugins ,你可能会发现一些有用的东西。

As for version control - I would recommend git, it is faster and has more features. 至于版本控制 - 我会推荐git,它更快,并具有更多功能。 SVN can work OK too. SVN也可以正常工作。 Do not use CVS unless someone points a gun at your head. 除非有人用枪指着你的头,否则不要使用CVS。

Wow, gedit has plugins nowadays? 哇,gedit现在有插件吗? I was about to suggest emacs/gvim or a full blown IDE like anjuta for coding cpp. 我打算建议使用emacs / gvim或像anjuta这样的完整版IDE来编写cpp。

Regarding the choice of version control, I'd go with svn or git. 关于版本控制的选择,我会选择svn或git。 Both are very easy to use and don't make you jump through hoops like the good old cvs. 两者都非常容易使用,并且不会让你像老式的cvs一样跳过篮球。

For editing you can choose: 要进行编辑,您可以选择:

  • just an editor - vi(m), emacs, etc. Here I prefer vim. 只是一个编辑 - vi(m),emacs等。在这里我更喜欢vim。 But if you're not familiar with it you may be shocked at the begging. 但如果你不熟悉它,你可能会对乞讨感到震惊。 These give posibility also run make from within the editor itself. 这些给予可能性也在编辑器本身内运行。
  • IDE - KDevelop, Eclipse (+ CDT - plugin for C++), Code::Blocks. IDE - KDevelop,Eclipse(+ CDT - C ++插件),Code :: Blocks。 I didn't used by these, but heard from colleagues that KDevelop is ok, while Eclipse is too have ans slow. 我没有使用这些,但是从同事那里听说KDevelop是好的,而Eclipse太慢了。

As for source control the choice is between SVN (this is right successor of CVS) and git. 至于源控制,选择在SVN(这是CVS的正确继承者)和git之间。 If you develop alone or it's not big team of developers SVN should be fine. 如果你单独开发或者它不是开发团队的大团队SVN应该没问题。 It uses central repository to store the data. 它使用中央存储库来存储数据。

git in contrast is distributed source control tool. 相反,git是分布式源代码控制工具。 I found it pretty complicated to used to. 我发现它过去很复杂。

So if you don't need "distributed" feature of git, choose SVN. 因此,如果您不需要git的“分布式”功能,请选择SVN。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM