How to setup VS Code to run code in external terminal like CodeBlocks or Microsoft VS?

preview_player
Показать описание
This video will:
1. Show you the code that causes Code runner extension to run code similar to code::blocks.

Code that makes it possible:
"cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt && start cmd /k \"$dir$fileNameWithoutExt\"",

The Original:
"cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",

Thumbnail info:
Thinking Icon reference: Thinking Face icon by Icons8
Gear Icon reference: Settings icon by Icons8
Рекомендации по теме
Комментарии
Автор

The above is a link to the website I got the 3-Gear Icon and the Emoji.
Thanks for watching! and don't have a good day....have a GREAT day!

Apologies for the rectangular video links that block the text at the end. I will improve as this channel grows.

CodeB_cpp
Автор

Update: You might want to check out this video:
You can say its an improvement to this one.

CodeB_cpp
Автор

Can something similar to the effects of DevCpp and CodeBlocks be achieved now? "press to continue" and "process return zero

汐沐-lv
Автор

I need help for macos, I have tried many ways but it did not work.

nhatthienmai
Автор

Just in case anyone wanna do this with C
Add this line in settings.json which is coderunner extension settings
the line:
"c": "cd $dir && gcc $fileName -o $fileNameWithoutExt && Start-Process cmd -ArgumentList '/k \"$dir$fileNameWithoutExt\"'",

ioXyJHlCdtAiE
welcome to shbcf.ru