Answer the question
In order to leave comments, you need to log in
What is the best way to write in C language?
What text editor is best for writing in C? (I will obviously compile on GCC) Or is some IDE such as Visual Studio enough?
Answer the question
In order to leave comments, you need to log in
It is better for a beginner to write in as simple a text editor as possible. And a professional chooses an IDE for himself, there is definitely no better solution in this matter.
The IDE includes, among other things, a text editor, sharpened specifically for creating code.
On Windows, MSVS is not bad, but keep in mind that the default compiler (Microsoft's cl) does not officially support C standards. It may support ANSI C, but I don't know about it, because it is not relevant. Some things from the latest standards work, others don't, some work, but not quite like in the standard.
gcc, clang - support standards.
I am using qtcreator. It can be used even if the project does not use Qt and does not have C++.
I used to use eclipse, but it is written in Java, respectively, the brakes at the most inopportune moment, pretty pissed off with this.
There is also an important moment, which build system to use. If you use MSVS + cl, then the build system will be msbuild, and you don’t need to bother much there - you configure the project in the studio and everything is applied as it should, in fact you don’t see the build system, but it is there, like gophers.
MSVS also supports other compilers and build systems, such as cmake, but here you already have to learn the build system management language and write your own build scripts.
In qtcreator, qmake is used by default, it also knows how to use cmake from the box. The same is necessary to write assembly scripts.
Eclipse - here you can do everything without a build system, through the project properties. Eclipse will collect everything by itself. But in some places it is quite confusing, although you quickly get used to it. In addition, in the end you will need to build a project without an IDE (for example, from a customer), and here you will need a build system that you did not get in Eclipse and you will have to somehow get out of the situation. I wrote a makefile in this case, it seemed to me the easiest option. Now I don’t think so - it’s easier to immediately make a project using some kind of build system. Including on it refused Eclipse.
Gcc means linux. Don't forget to specify the axis. Yes, there is cygwin, but using gcc on Windows is a perversion. If gui works in Linux, the best editors built into the IDE are Eclipse, KDevelop. If there is no IDE, you can use any editor - most of them have syntax highlighting and auto-braces functions.
If there is no gui, but there is only a console - for example, I use mcedit.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question