Тёмный

How to Compile and Run C Program using Visual Studio Code Tasks 

Top Down Programming
Подписаться 486
Просмотров 92 тыс.
50% 1

In this video i tried to Compile and run c program using visual studio code with MinGW
steps i took in this video is
1.) First i Compiled and Run in visual studio code integrated terminal
2.) Then i transferred the commands in task.json file.
by doing this i am able to run it through tasks without typing anything in command line.
part 1: Installing MinGW compiler and visual studio code.
• Installing MinGW compi...
part 2: compile and run c program using visual studio code tasks.
• How to Compile and Run...
part 3: assign key board shortcut for compiling and running c program in visual studio code.
• Visual studio code key...
part 4: how to debug c program in visual studio code
• How to debug c program...

Опубликовано:

 

26 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 28   
@lspasiano3267
@lspasiano3267 6 лет назад
I'm glad you took the time to make this, it helps me to understand it all a bit. Congrats
@umermahmood6366
@umermahmood6366 4 года назад
Thank you for this video. This is the first time I understood how the task file actually gets things done. Although there are easier ways to do it, for example the code runner extension, but using this method would help any one in the future when they try to setup visual studio for other languages. And please improve ur audio quality, other than that, your content is amazing. Keep up the good work.
@alexdominguess
@alexdominguess 5 лет назад
better solution.... 1 - install "Code Runner" extension 2 - Restart VScode 3 - Write your code 4 - "ctrl + alt + n" To run the code Done
@frenzy9741
@frenzy9741 5 лет назад
Thanks! I'm kinda new with VSCode and I was like crazy trying to run code without getting the debug mode (cuz I didn't realize that was F5).
@faizanqazi7004
@faizanqazi7004 5 лет назад
Do we have to set path for code runner to ? as he did in the video
@TmFlLeoQoQ
@TmFlLeoQoQ 5 лет назад
thanks
@alanleonel95
@alanleonel95 5 лет назад
I tried using code runner and nothing happens, I already changed the path to .gcc by editing the .json file, still nothing. I also tried using the official c/c++ extension and still nothing, I even moved mingw to the root directory to avoid any blank spaces, still nothing.
@dsofa4785
@dsofa4785 5 лет назад
@@alanleonel95 Install Visual Studio Code. Install C/C++ extension. Install Mingw-w64 to a folder that has no spaces in its path. Add the path to your Mingw-w64 bin folder to the Windows PATH environment variable. If it still doesn't work, try installing Code Runner extension.
@ManzoorHussain-gz1vk
@ManzoorHussain-gz1vk 5 лет назад
for example your file name is " hello.c" The short form; for compile: gcc hello.c for run: a.exe
@christopher8116
@christopher8116 4 года назад
Regardless what I do I cannot get any tasks to work ?
@kafkimatematico1456
@kafkimatematico1456 5 лет назад
Thank you. It works I do not know why it will be but for HolaMundo.c to work, I had to change the code by mistake: main () instead of int (main). and that's how it worked for me. Thank you!!!! from Spain.
@girish507
@girish507 5 лет назад
this liké showing GCC:error:hello world.c:no such fíles or directory
@bhavishyasharma998
@bhavishyasharma998 4 года назад
Brother I have a query what about c++ it's not accepting any of the C++ function
@barancangenc5718
@barancangenc5718 5 лет назад
how to dynamicly filename compile c file, example my file name It's not certain
@sparshsinha1881
@sparshsinha1881 4 года назад
excellent
@wizzacx
@wizzacx 5 лет назад
Hey ! I followed all your steps as mentioned. But When I Open The Terminal , it shows the below messenge “ cannot open source file “stddef.h” ( dependency of “studio.h”) [1,1] “
@wizzacx
@wizzacx 5 лет назад
please help
@wizzacx
@wizzacx 5 лет назад
@@topdownprogramming yes i did ! what includePath Did you set up ?
@masseyferguson5913
@masseyferguson5913 5 лет назад
THX BROH.
@gauravrewaliya3269
@gauravrewaliya3269 3 года назад
0:24 why in pc it cant show open with code
@topdownprogramming
@topdownprogramming 3 года назад
While installing vs code you have to check option. You can refer it in part 1
@irfanaliahmed5642
@irfanaliahmed5642 4 года назад
How to compile mesa driver
@frenzy9741
@frenzy9741 5 лет назад
Nice tutorial, tho the audio is a mess, I had to use captions and mute the audio before losing my sanity.
@sallsohun5128
@sallsohun5128 5 лет назад
*Thanks brother*
@judyquin
@judyquin 5 лет назад
I am a programmer, my C program is not compiling in vs code. please i need help
Далее
How to debug c program in visual studio code
6:47
Просмотров 43 тыс.
Истории с сестрой (Сборник)
38:16
how to run and debug html code in visual studio code
4:27
variable declaration and definition in c
5:08
Просмотров 2,4 тыс.
how to use axios globally in all vue components
3:38
how to debug python code in visual studio code
1:50