TextMate is another Mac-based text editor. This text editor is mostly preferred for programming in Ruby and Ruby on Rails. It is a well-known Code-Editor for developers who code on a Mac system. The application is excellent for development in modern programming languages. Let’s us look at some of its pros and cons. Search and Replace 2. C++, an extension of well known C language, is an excellent, powerful and general purpose programming language that offers modern and generic programming features for developing large-scale applications ranging from video games, search engines, other computer software to operating systems.
Active4 years, 8 months ago
I've just started a job where I'm programming in C on a Mac, which is my first experience using a Mac for development. For now I'm using Xcode as my editor, then using make/gcc/svn at the command line for compiling and source control.
Is there a good, full featured IDE out there for Macs that will compile C code (something comparable to VS would be ideal), or should I stick with these low level tools?
EDIT: so I called Xcode a 'low level tool' because I was under the impression that it was just a text editor for code, like gvim. I will definitely look into it's compiling/source control features.
idmean11.1k77 gold badges3939 silver badges7171 bronze badges
Graphics NoobGraphics Noob6,9371010 gold badges3939 silver badges4242 bronze badges
closed as off-topic by legoscia, showdev, QuinnG, Linger, hexacyanideOct 23 '13 at 19:32
This question appears to be off-topic. The users who voted to close gave this specific reason:
- 'Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.' – legoscia, showdev, QuinnG, Linger, hexacyanide
7 Answers
FrankFrank30k8484 gold badges213213 silver badges308308 bronze badges
stefanBFree Pdf Editor For Mac
stefanB49.9k2424 gold badges107107 silver badges135135 bronze badges
textmate - Download from Macromates website.
The latest version is textmate2 but some people choose to keep using textmate-1.5 because there are significant differences between the two versions and they're both awesome.
davidcondrey24.4k77 gold badges8787 silver badges119119 bronze badges
bgwbgw1,75811 gold badge1717 silver badges2828 bronze badges
I just stumbled over Qt Creator. It seems to hold up really nice where every other IDE failed me when working with a plain Makefile project.
XCode, Eclipse, IntelliJ or Netbeans wouldn't resolve dependencies, or load my project in a good way. In Qt Creator I could just point to New Project » Import Project » Import Existing Project and voila!
neu242neu2429,3051313 gold badges6060 silver badges9090 bronze badges
Remember that Objective-C is a superset of C (a pretty pure one, if I recall correctly). You should be able to use XCode for editing, compiling, and debugging.
Here's one solution (which tells you to create a C++ project, then rename main.cpp to main.c).. http://www.cs.nyu.edu/~s70201/C_In_Xcode/Xcode_Tutorial.html
NosrednaNosredna61.4k1414 gold badges8989 silver badges119119 bronze badges
Xcode can manage project and compile for you as any IDE. But if you're familiar with CLI, I would recommand you to use a good editor and your usual build tools. Emacs and vim are available on os x (using xcode just for its editor is not ideal). Pdf xchange editor free for mac. Many mac dev love the excellent TextMate editor, but it is not a free (as in freedom) software.
Frank30k8484 gold badges213213 silver badges308308 bronze badges
p4bl0p4bl0
![C Language Editor For Mac C Language Editor For Mac](https://safetricks.org/wp-content/uploads/2015/10/notepad-plus-plus.png)
Obviously 'good' is a subjective decision, but Xcode 3.2 is certainly up to par with what you can do in VisualStudio (if one considers VS good, is another thing of course).
I have a project with 250000+ lines of codes, 10 dylibs, helpfile, all in an SVN (Perforce) etc. and hardly ever go outside Xcode.
Xcode has a few peculiar ways to do some things and the debugger is not quite as powerful as the current one in VisualStudio, but overall there's hardly anything you can not do from within the IDE (and the options to adjust the shortcuts within the IDE, Debugger and Editor to your needs are really awesome).
gcamp12.8k44 gold badges4949 silver badges8080 bronze badges
Mac Text Editor
NicholazNicholaz
Not the answer you're looking for? Browse other questions tagged cmacoside or ask your own question.
- C Programming Tutorial
- C Programming useful Resources
- Selected Reading
If you want to set up your environment for C programming language, you need the following two software tools available on your computer, (a) Text Editor and (b) The C Compiler.
Download C Language Editor
Text Editor
This will be used to type your program. Best photo editor for mac. Examples of few a editors include Windows Notepad, OS Edit command, Brief, Epsilon, EMACS, and vim or vi.
The name and version of text editors can vary on different operating systems. For example, Notepad will be used on Windows, and vim or vi can be used on windows as well as on Linux or UNIX.
The files you create with your editor are called the source files and they contain the program source codes. The source files for C programs are typically named with the extension '.c'.
Before starting your programming, make sure you have one text editor in place and you have enough experience to write a computer program, save it in a file, compile it and finally execute it.
The C Compiler
The source code written in source file is the human readable source for your program. It needs to be 'compiled', into machine language so that your CPU can actually execute the program as per the instructions given.
The compiler compiles the source codes into final executable programs. The most frequently used and free available compiler is the GNU C/C++ compiler, otherwise you can have compilers either from HP or Solaris if you have the respective operating systems.
The following section explains how to install GNU C/C++ compiler on various OS. We keep mentioning C/C++ together because GNU gcc compiler works for both C and C++ programming languages.
Installation on UNIX/Linux
If you are using Linux or UNIX, then check whether GCC is installed on your system by entering the following command from the command line −
If you have GNU compiler installed on your machine, then it should print a message as follows −
If GCC is not installed, then you will have to install it yourself using the detailed instructions available at https://gcc.gnu.org/install/
This tutorial has been written based on Linux and all the given examples have been compiled on the Cent OS flavor of the Linux system.
Installation on Mac OS
If you use Mac OS X, the easiest way to obtain GCC is to download the Xcode development environment from Apple's web site and follow the simple installation instructions. Once you have Xcode setup, you will be able to use GNU compiler for C/C++.
Xcode is currently available at developer.apple.com/technologies/tools/.
Installation on Windows
To install GCC on Windows, you need to install MinGW. To install MinGW, go to the MinGW homepage, www.mingw.org, and follow the link to the MinGW download page. Download the latest version of the MinGW installation program, which should be named MinGW-<version>.exe.
While installing Min GW, at a minimum, you must install gcc-core, gcc-g++, binutils, and the MinGW runtime, but you may wish to install more.
Add the bin subdirectory of your MinGW installation to your PATH environment variable, so that you can specify these tools on the command line by their simple names.
After the installation is complete, you will be able to run gcc, g++, ar, ranlib, dlltool, and several other GNU tools from the Windows command line.