Visual Studio Code Tutorial to Disable All Red Errors & Warnings Messages [WORKING TUTORIAL]
Jan 21, 2025
Get the full code here:
https://codingshiksha.com/tutorial/visual-studio-code-tutorial-to-disable-all-red-errors-warnings-messages-working-tutorial/
Hi Join the official discord server to resolve doubts here:
https://discord.gg/cRnjhk6nzW
Visit my Online Free Media Tool Website
https://freemediatools.com/
Buy Premium Scripts and Apps Here:
https://procodestore.com/
Show More Show Less View Video Transcript
0:00
uh hello guys welcome to this video so
0:02
in this video I will show you a nice
0:04
little trick which you can do in order
0:07
to hide or disable red lines that
0:09
appears inside Visual Studio code so
0:11
these are basically red error lines so
0:14
sometimes it's really frustrating to see
0:17
these red lines while you are coding
0:18
inside Visual Studio code so I'm showing
0:21
you a setting that you can make inside
0:22
vs code to disable this error messages
0:25
that are appearing if you see these red
0:28
error lines right here and also the
0:30
Bings that appear in
0:32
yellow lines as well so now to disable
0:35
all this you need to open your user
0:37
setting file so there's a shortcut here
0:40
control shift p if you hit on you will
0:44
open this and just you need to open the
0:46
user settings of your vs code inside
0:51
preferences and you can open
0:54
this and this is actually a Json
0:57
file which actually trigger all the
1:00
settings inside vs code so now we need
1:02
to disable these error messages so this
1:04
setting is there inside this workbench
1:08
so if you just write workbench do color
1:12
customizations so if you just write this
1:14
object right here so it actually
1:16
provides an object so you write
1:18
workbench do color customizations so
1:20
this is actually an option and here you
1:23
need to customize all these error colors
1:26
here so we can control the color here
1:29
editor error. foreground and here we can
1:32
change this color to transparent color
1:35
so for this we will write 8 zeros 3 4 5
1:39
6 7
1:40
8 so this is the transparent color for
1:44
vs code so we write heximal code eight
1:47
zeros so editor error. for ground
1:50
similarly we have properties which
1:53
controls editor
1:56
error dot back foreground
2:03
so we have editor error
2:06
warning do foreground and you will use
2:10
the same
2:16
color so I've given all this code guys
2:19
in the description of this video so you
2:22
can go to my blog post to Simply copy
2:25
this and also we have the info class as
2:28
well warning error so we are just
2:30
manipulating changing the foreground
2:32
color of this so we are providing this
2:34
heod decimal code here
2:37
so if you refresh now you will see all
2:40
your errors will go away so these error
2:43
messages that you see the red error
2:46
messages and three more lines you need
2:49
to add this is for the Border as well so
2:51
if you do see a
2:54
border then also it will go away so
2:56
these
2:57
six lines you need to add in inside your
3:00
user settings. Json file so this is
3:02
actually an opt uh object here workbench
3:05
do color customization so you need to
3:07
pass the six options which control the
3:09
color of your error so if you refresh
3:12
your vs code you will see all error
3:14
messages the warnings will go away so in
3:19
this way you can control this and again
3:21
if I remove this you will see as I
3:24
remove this the error messages will
3:26
again
3:27
come so at any moment of time if you
3:31
want to disable this you can use this
3:33
short shortcut trick just
3:35
open control shift p and then type here
3:38
user setting and just paste this
3:46
object so this is
3:50
actually just need to paste
3:53
it and then it will change it and the
3:58
all the error messages that you see the
4:00
error end lines will go away so this was
4:03
a trick guys that I showed you in this
4:05
video so thank you very much for
4:06
watching this video and also check out
4:09
my website as well free mediat tools.com
4:12
uh which contains thousands of tools
4:15
regarding audio video an image and I
4:17
will be seeing you guys in the next
4:19
video
#Programming
