Support C projects in Visual Studio 2010?

Do you know any extension (preferably free) for VS (or VCPP) 10 that adds to the performance of C projects (i.e. templates, header management, syntax highlighting, etc.)?

thank

+3
source share
3 answers

Create a Win32 C ++ project and from the Solution Explorer, right-click your project and select "Properties" → "Configuration Properties" → "C / C ++" → "Advanced" → "Compile As →" Compile As C ". , then rename the * .cpp extensions to * .c and create your own project.
You can delete some unimportant files, such as stadfx.cpp and targetver.h (remove its link from stdafx.h).

+1
source

Visual Studio already comes with C support. This includes project files, a compiler, header files, syntax highlighting, and debugging support. What do you miss (except C99)?

+1
source
  • ++, Win32 (, ).
  • ( "", " ..." ) " ++ (.cpp)"
  • Here is an important step. Give the file the extension ".c" and not the extension ".cpp". By invoking the ".c" file, Visual Studio compiles it as C instead of C ++.
+1
source

Source: https://habr.com/ru/post/1753077/


All Articles