How to Open,Validate,Format & Render XML Files in VSCode IDE
2 views
Jul 5, 2025
Get the full source code of application here:
View Video Transcript
0:00
Uh hello guys, welcome to this video. So
0:02
in this video, I'll show you how to open
0:05
syntax highlighting and format validate
0:08
your XML documents directly inside VS
0:10
code. So by default in VS code, XML
0:13
document doesn't have much support. So
0:15
if I have this Xample doxml file, so the
0:19
file will show like this, it doesn't
0:21
have the ability to syntax highlight the
0:24
various sections of XML files. It
0:26
doesn't validate your documents. So
0:28
there is a one extension you need to
0:30
install right here. Just go to the
0:32
extensions tab and just if you just type
0:34
here XML
0:36
the very first extension which comes
0:38
right here. It's developed by this XML
0:42
tools. You may say
0:44
I already have this
0:48
but let me just uh uh uninstall this.
0:54
So without this extensions if you open
0:58
your sample.xml file it doesn't do much.
1:02
So what you need to do first of all you
1:04
it simply need to activate this
1:08
extension.
1:17
So once it is activated you will see the
1:20
syntax highlighting is there.
1:24
You just open the command pallet
1:29
you will see all these options appearing
1:31
revalidate all opened XML files. So all
1:35
XML files were successfully validated.
1:37
So let's suppose if I make some kind of
1:39
mistake here
1:42
and again do this process.
1:50
So this extension doesn't do the job for
1:54
us. So you can uninstall this. Let me
1:56
choose this. If you just type your XML
1:59
formatter.
2:09
So quite a number of extensions will
2:11
come. So,
2:15
but these two extensions do the job for
2:18
you for basic syntax highlighting.
2:22
This is developed by Redhead. It's
2:25
almost having 9 million downloads. And
2:28
this one also
2:35
it's does the job for you.
2:40
So I think these two extensions are more
2:43
than enough if you're working with XML
2:45
files. Simply install them and
2:52
you will have syntax highlighting as
2:54
well. So all these features will be
2:55
there. So,
2:59
thank you very much for watching this
3:00
video and also check out my website free
3:03
media tools.com
3:05
uh which contains thousands of tools.