{"repo":"kokororin/vscode-phpfmt","free":true,"listed":false,"github":"https://github.com/kokororin/vscode-phpfmt","clone":"git clone https://github.com/kokororin/vscode-phpfmt.git","description":"Integrates phpfmt into VS Code","language":"TypeScript","stars":146,"topics":["vscode-extension","vscode-plugin","php","phpfmt","linter","formatter","vscode"],"license":"BSD-3-Clause","category":"dev-tools","readme_excerpt":"phpfmt for Visual Studio Code The missing phpfmt extension for Visual Studio Code. Installation Open command palette F1 and select Extensions: Install Extension , then search for phpfmt. Note : PHP 5.6 or newer is required in the machine to run this plugin. Usage F1 - phpfmt: Format This File or keyboard shortcut Ctrl + Shift + I which is Visual Studio Code default formatter shortcut or right mouse context menu Format Document or Format Selection Format On Save Respects editor.formatOnSave setting. You can turn off format-on-save on a per-language basis by scoping the setting: Q&A Q: How to use phpfmt.php bin with spaces such as C:\\Program Files\\php\\php.exe ? A: Wrap your path with quotes like: It is recommended to add the directory of the php.exe to the PATH environment variable on Windows. If it still not working, refer to #1 and Stack Overflow Related. Q: How use tabs instead of spaces with PSR2 enabled ? A: For PSR2, code MUST use 4 spaces for indenting, not tabs. But if you like PSR2, and do not like 4 spaces for indentation, add following configuration: Q: Is fmt.phar (phpfmt itself) still maintained ? A: Since phpfmt has no maintainers, only Serious bugs will be fixed. A: We now use fmt.stub.php from driade's phpfmt8 which is very updated. Configuration Key Type Description Default - - - - phpfmt.php bin string php executable path \"php\" phpfmt.use old phpfmt boolean use old fmt.phar which supports 5.6 false phpfmt.detect indent boolean auto detecting indent type and si","default_branch":null,"files":null,"tree":[],"storefront":"/r/kokororin","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kokororin/vscode-phpfmt/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}