How to Get Clean Output in VSCode When Running Programs Using Code Runner Extension
Mar 1, 2026
Get the full source code of application here:
Show More Show Less View Video Transcript
0:00
Uh hello guys in this video I'll show
0:02
you how to get clear and clean output in
0:04
VS code while running your programs
0:06
using code runner extension. So by
0:08
default whenever you run any sort of
0:10
Python or Java C++ program so you
0:14
basically run click on run code using
0:17
code runner extension. So you don't you
0:19
see this messy output and it really
0:23
confuses you. So I will show you in this
0:25
video how to get a clean output. Only
0:27
this output will be present rather than
0:29
all these things will be deleted. So for
0:33
this you do need to have code coderunner
0:35
extension which I am assuming while you
0:38
are watching this video you should have
0:40
installed this extension. So it's a very
0:42
popular extension. So just make sure
0:44
that you install this extension.
0:46
After that we need to go to settings. So
0:49
go to file inside the menu and go to
0:53
preferences settings and inside the
0:56
settings option you need to simply
0:57
search for coderunner
1:00
and we just need to enable some settings
1:02
here. If you simply search code runner
1:05
directly we need to check mark this
1:07
option which is coderunner clear
1:10
previous output. So just check check
1:12
mark this option.
1:15
And then the second thing we need to
1:17
think is the if you just drag down you
1:20
will see this option code runner run in
1:23
terminal. So by default it will be
1:25
ticked. You need to untick this option.
1:27
So just untick this option. And the
1:30
third thing is this one show execution
1:33
message. So by default this also will be
1:36
ticked. We just need to untick this. So
1:38
untick this. That's all that we need to
1:40
do. And now if you run the same thing
1:43
once again you will see only the output
1:45
clean output you will get not the
1:48
previous messages that you saw earlier.
1:52
So if I change this here
1:58
again run the program once again. So the
2:01
previous output will also be deleted. So
2:03
you will only get the output that you
2:05
want. So if I edit this. So just to show
2:09
you it's working. So four hello world
2:12
statements will be printed out. So you
2:14
basically get a clean output in VS code
2:18
using code runner extension. So these
2:20
are the settings that you need to do.
2:21
Simply go to settings and just untick
2:24
the things that I showed you. Just
2:27
untick this. So execution run in
2:30
terminal and just tick mark this option
2:32
clear previous output.
2:35
So please hit that like button. Also
2:37
subscribe and if your problem is solved,
2:40
please comment as well.
