(Noob here, so apologies for the very basic question). Currently I mostly use Sublime Text for editing code. However to compile I alt-tab to MSVC and compile there and then alt-tab again to a file browser and launch my .exe file. I am looking for a way to optimise this and not having to alt-tab all the time.
So first question is: Is there way to make Sublime Text compile a MSVC C++ project ? I know you can press Ctrl-B, but then you have to know how to set-up all the compiler options link all the libraries (and this was a total nightmare for me to do in MSVC, so preferrably I do not have to do this again for some other compiler).
Second question is: Once the .exe is compiled, is there way to make Sublime launch the .exe (now I have to look it up in my file browser each time, which is a huge pain).
Yes, you very well can learn C using Visual Studio. Visual Studio comes with its own C compiler, which is actually the C++ compiler. Just use the . c file extension to save your source code.
C/C++ support for Visual Studio Code is provided by a Microsoft C/C++ extension to enable cross-platform C and C++ development on Windows, Linux, and macOS.
Two options. Great, now that Visual Studio Community is installed, you have two options for developing and running C programs on Windows. The first option involves using any text editor you like to write your source code, and using the "cl" command within the Developer Command Prompt to compile your code.
For once I do have a solution !
Here it is :
I found an old script that uses MSBuild to build an old solution like that :
%PATH_TO_MSBUILD%\MSBuild.exe %SLN_ABSOLUTE_PATH% /t:Clean /t:%TARGET% /p:Configuration=%MODE_COMPILATION%
Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With