Search code examples
phpstormvisual-studio-code

How to import PhpStorm formatter in VSCode?


All programmers in the company I work at use PhpStorm and PhpStorm formatter. I prefer using VSCode, which creates a problem, my code is formatted and indented differently.

I like to use the formatter that exists in PhpStorm, whether by exporting and importing it somehow or by changing the settings of VSCode formatter, or by using an extension.


Solution

  • I am using phpfmt extension to format the visual studio code. You may set your own shortcut key for this also. For this go to preference keyboard shortcut and type phpfmt and change your shortcut key.