How can I write in C in Visual Studio?
There is no plugin per se.
PS I know that there are other development environments, but VS is needed.
How can I write in C in Visual Studio?
There is no plugin per se.
PS I know that there are other development environments, but VS is needed.
Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .
There are two possibilities. The first is to select the C / C ++ item in the project properties. In the opened submenu, select the item "Advanced", and then in the right pane in the item "Compile as" select the option "Compile as C code".
The second possibility is to create a dummy with the .c extension in the directory where you want to have your project, and then when creating a project, select the item "Create a project from an existing project".
This is all I have long ago described on my forum in the very first topic Compilation of the C program in Microsoft VS 2010
Well, since I prefer to work in the command line, I’ll tell you about it - in it, by default, the compiler treats source files with the .c extension as C text, and compiles accordingly. But there are also keys /Tc<file> - to compile file as a file in C, and /TC - to compile as C all files.
Source: https://ru.stackoverflow.com/questions/603221/
All Articles