This VSCode Extension Instantly Formats All Your PHP Code | Best Extension For PHP Development
Jun 7, 2025
Official Website:
https://freemediatools.com
Show More Show Less View Video Transcript
0:02
uh hello guys uh welcome to this live
0:04
stream so in this live stream I will
0:06
show you a VS VS code PHP extension
0:09
which is a very good extension for PHP
0:12
development it instantly formats all
0:15
your PHP code in one click so by default
0:18
if you see inside PHP if you make any
0:21
sort of formatting mistake then there is
0:24
no built-in formatter for the PHP code
0:27
let's suppose this is my Laravel project
0:29
here you will see if I make any sort of
0:32
formatting mistake then there is no
0:35
built-in PHP formatter so if you right
0:38
click you will not see a option for
0:41
formatting the PHP code so there is an
0:44
extension in VS code that you can
0:45
install go to the extensions tab and
0:48
just type here
0:51
PHP FMT php FMT this is the name of the
0:55
extension
0:57
you can see PHP FMT and if you write
1:00
this extension uh the very first
1:02
extension which comes it is PHP FMT PHP
1:06
formatter it is developed by this person
1:08
Koko Rican it's having 1.1 million uh
1:13
downloads and if you just click it
1:15
you'll see it integrates the PHP
1:17
formatter inside VS code and uh simply
1:20
click the install button and uh then it
1:24
will install it globally inside your VS
1:26
And now if you go to the file and you
1:29
can see the code is not formatted now if
1:32
you right click you will see this option
1:34
of format
1:36
document and also this option format
1:39
document with so if you just click this
1:41
option format document so instantly it
1:45
will format all your PHP code and now
1:47
you can see it is perfectly
1:49
aligned so if you make any sort of
1:53
formatting mistake you will see it can
1:55
be at various locations let me
2:03
just so instantly if you right click it
2:06
will again format everything back to the
2:11
actual formatting of PHP so in this easy
2:13
way you can it will save a lot of time
2:16
because in PHP development you may have
2:19
made formatting mistakes so by default
2:23
PHP formatting is not available in VS
2:26
code so simply install this extensions
2:28
and then it will actually everything
2:31
will be formatted for you in a in
2:33
instantly in a single click format
2:37
document if you have a already a
2:40
formatter available then you can uh
2:42
basically configure this and make this
2:45
extension default but I I I only have a
2:50
single formatter available so that's why
2:52
it is automatically set by default so if
2:55
I just right click select this option it
2:57
will analyze the whole
2:58
document and then it will instantly
3:01
format my PHP document so this is the
3:03
extension guys definitely install it and
3:06
start using it and uh thank you very
3:08
much for watching this video and live
3:11
stream and I will be seeing you guys in
3:14
the next live stream and also subscribe
3:16
the channel and also check out my
3:19
website
3:20
freemediatools.com which contains
3:22
unlimited number of tools regarding
3:23
audio video and image
#Programming
#Business & Productivity Software
