简体   繁体   English

对C IDE的建议?

[英]Suggestion for C IDE?

I used to use gcc compiler on my unix machine. 我曾经在unix机器上使用gcc编译器。 I am now forced to work on a windows machine. 我现在被迫在Windows机器上工作。 Is there any cool IDE or a simple editor for C with a unix terminal like feel ( Black Screen and colored syntax on it :)) 有没有很棒的IDE或C的简单编辑器,并且带有unix终端(如Black Screen and colored syntax :))

What other editors/IDE are as robust as gcc for windows? 还有哪些其他编辑器/ IDE与Windows的gcc一样强大? Also what is your personal favorite. 另外,您个人最喜欢什么。 I would like a try a few of the those before I stick with one. 在坚持使用之前,我想尝试其中的一些方法。

Thanks. 谢谢。

Visual Studio. 视觉工作室。 You can change the fonts & colors however you want. 您可以根据需要更改字体和颜色。 I have been using the same coloring scheme since Borland Turbo C++ back in the 80's -- yellow text on a dark blue background. 自80年代Borland Turbo C ++以来,我一直在使用相同的配色方案-深蓝色背景上的黄色文本。

VIM or Emacs. VIM或Emacs。 Though I personally will never use anything other than VS :) 虽然我个人不会使用VS :)

Cygwin is your friend. Cygwin是你的朋友。 It gives you all the nice unixy stuff that you miss! 它为您提供了您错过的所有不错的unixy东西! :) :)

In terms of cool IDEs that will integrate nicely with gcc on Cygwin, you should try Netbeans, Eclipse (with CDT) - both require a decent JVM. 就可以与Cygwin上的gcc很好地集成的出色IDE而言,您应该尝试Netbeans,Eclipse(带有CDT)-两者都需要一个不错的JVM。 If you do get Cygwin installed, there's xemacs and gvim I believe that you can get for it... 如果您确实安装了Cygwin,我相信您可以得到xemacs和gvim ...

IMHO stick with Netbeans... 恕我直言坚持与Netbeans ...

Zeus is a very nice programmer's editor. 宙斯是一个非常好的程序员的编辑器。 I just love it's Brief keyboard emulation. 我只是喜欢它的简短键盘仿真。

IIRC DOS command prompt can change its color. IIRC DOS命令提示符可以更改其颜色。 Have you tried Cygwin and MinGW ? 您尝试过CygwinMinGW吗?

mingw is Minimum Gnu for Windows. mingw是Windows的最小Gnu。 There are several add on packages to it, but it has gcc and g++ . 有几个附加软件包,但有gccg++ Occasionally there is an issue with some tool not acting exactly right with executables having .exe on their end or / and \\\\ in output statements, but it's pretty decent. 有时,某些工具的尾部带有.exe可执行文件或输出语句中带有/\\\\可执行文件可能无法完全正常地工作,但这相当不错。 I can't remember, but I think that there may be some reason that you can't run gdb in Windows, but I could be wrong. 我不记得了,但是我认为您可能由于某些原因无法在Windows中运行gdb,但我可能是错的。

You can also get versions of most of the *nix text editors for Windows. 您还可以获得Windows的大多数* nix文本编辑器的版本。 gVim is available if you like vi or vim. 如果您喜欢vi或vim,则可以使用gVim。 Versions of vi and vim for the command line are also available, but don't always act right with resized windows. 也可以使用命令行的vi和vim版本,但是在调整大小的窗口上并不总是正确。 gVim and vim can do syntax highlighting if you tell them to in the configuration file. 如果在配置文件中告诉gVim和vim,它们可以进行语法高亮显示。

The last couple of versions of Windows have had (or been able to freely download and install) PowerShell, which I suggest you get. Windows的最后几个版本已经(或能够免费下载和安装)PowerShell,我建议您使用它。 It is different from a *nix shell in many many ways, but often (not always) you can get away with using it just like a *nix shell. 它在很多方面都与* nix shell有所不同,但是通常(并非总是)您可以像使用* nix shell一样摆脱使用它。 If you use pipes in it you should know that it likes to turn everything into utf-16, though. 如果您在其中使用管道,则应该知道它喜欢将所有内容都转换为utf-16。 The main good thing I've found when using it as a better DOS window is that you can resize the window more freely. 将它用作更好的DOS窗口时,我发现的主要优点是您可以更自由地调整窗口的大小。 You can still use old DOS windows, though. 但是,您仍然可以使用旧的DOS窗口。

Another alternative is cygwin, which besides just the command line tools, presents more of a *nix environment for your programs. 另一个替代方法是cygwin,它除了命令行工具外,还为您的程序提供了更多* nix环境。 It includes libraries that make things look more like you are running on Linux from your programs' point of view (simulating many Linux system calls, for instance). 它包含的库​​使程序从程序的角度看起来更像在Linux上运行(例如,模拟许多Linux系统调用)。 I used this a long time ago, but it had some pretty severe problems back then. 我很久以前就用过,但是那时有一些非常严重的问题。 I have heard great things about it since then, but I have not had enough of a reason to try it out again. 从那时起,我就听到了很多很棒的消息,但是我没有足够的理由再次尝试它。

Visual Studio will be your best bet. Visual Studio将是您最好的选择。 Others have mentioned the free Express version which will probably be sufficient for your needs. 其他人提到免费的Express版本,这可能足以满足您的需求。 Visual Studio is not only an IDE, it has Microsoft's compiler bundled with it. Visual Studio不仅是一个IDE,而且还捆绑了Microsoft的编译器。 Since the choice of IDEs is vast, I'll leave it to you to choose the one you'll be comfortable with. 由于IDE的选择范围很广,因此我将由您选择适合自己的IDE。

The venerable GNU gcc compiler is also available on Windows using Cygwin or MinGW. 在Windows上使用Cygwin或MinGW也可以使用古老的GNU gcc编译器。

If you want something pretty cutting edge, compiler wise, you should check out clang . 如果您想在编译器方面获得一些最前沿的知识,则应查看clang For various reasons, this is the C compiler to keep your eyes on. 由于各种原因,这是C编译器,您可以随时关注。 It's relatively new and was built with IDE support in mind. 它相对较新,并且在构建时就考虑到了IDE支持。

If you are used to a Unix-y feel and are looking for a text editor, I'd honestly avoid installing Visual Studio. 如果您习惯Unix-y的感觉,并且正在寻找文本编辑器,那么老实说,我避免安装Visual Studio。 It's a nice IDE, but it is very heavyweight and perhaps much more than you are asking for. 这是一个不错的IDE,但是它非常重,可能超出您的要求。 That said, you might of course find that you like it, but be aware that you are potentially looking at a several-hundred-megabytes download, 2 gigs for the full package IIRC. 就是说,您当然可能会发现自己喜欢它,但是请注意,您可能正在下载数百兆字节的内存,而完整的IIRC软件包则需要2吉字节。

Netbeans is good too, but fairly heavy, and a little difficult to get set up correctly with C and C++, at least last time I tried. Netbeans也很好,但是相当重,至少在我上次尝试时,使用C和C ++进行正确设置有点困难。 It's a good alternative to VS, though. 不过,它是VS的一个很好的选择。

I'd go for a more lightweight solution, like Notepad++, vim for Windows, or my personal favourite, Geany - http://www.geany.org/ 我会选择更轻巧的解决方案,例如Notepad ++,Windows的vim或我个人最喜欢的Geany- http://www.geany.org/

Getting the black background & colored syntax is possible on basically any advanced text editor/IDE nowadays. 如今,基本上在任何高级文本编辑器/ IDE上都可以获取黑色背景和彩色语法。

As for the compiler, MinGW is probably your best bet. 对于编译器,MinGW可能是您最好的选择。 Or you could nick the compiler & toolset that comes with Visual Studio Express :) 或者您可以为Visual Studio Express随附的编译器和工具集昵称:)

When visual studio already being mentioned, I have to mention Slickedit, not a IDE but a fantastic editor. 当提到Visual Studio时,我不得不提到Slickedit,而不是IDE,而是出色的编辑器。

http://www.slickedit.com http://www.slickedit.com

I recommend codelite - cross platform, free IDE designed for GNU toolchain. 我推荐Codelite-为GNU工具链设计的跨平台,免费IDE。

Net bean代码块Dev C ++代码精简版是不错的IDE

Visual Studio 2010 has an express edition that's doanloadable for free. Visual Studio 2010具有可免费下载的快速版本。 link text 连结文字

gcc via Cygwin is another awesome choice esp. 尤其是通过Cygwin的gcc是另一个不错的选择。 if you want to use Emacs as your IDE link text . 如果要使用Emacs作为IDE 链接文本

Personally, I tend to use both. 就个人而言,我倾向于同时使用两者。 I heavily lean towards Visual Studio 2010, but occasionally compile using gcc to make sure that both compilers are working the same way. 我非常倾向于Visual Studio 2010,但偶尔会使用gcc进行编译,以确保两个编译器都以相同的方式工作。 This used to be beneficial in the past (pre VS2010), but I haven't had much success in catching VS2010 make mistakes - yet. 过去(在VS2010之前)这曾经是有益的,但是我在捕获VS2010的错误方面并没有取得太大的成功-到目前为止。

In terms of the overall experience of integrated development, debugging etc., it's hard to beat VS2010. 从集成开发,调试等方面的整体经验来看,VS2010很难击败。

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

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