You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want 2 spaces indentation so I set up --space=2 in formatter arguments option of the extension but it seems -t4 is hardcoded when passing arguments to pretty-php.
Can it be disabled ?
2024-10-23 11:38:57.698 [info] Spawned: /usr/bin/php -ddisplay_errors=stderr -dshort_open_tag=On /home/user/.vscode/extensions/lkrms.pretty-php-0.4.74/bin/pretty-php.phar --space=2 -r blank-before-return -r align-data -r align-chains -r align-comments -r align-fn -F /home/user/file.php -t4 -q -- -
2024-10-23 11:38:57.909 [info] /usr/bin/php reported:
Error: --tab and --space cannot both be given
The text was updated successfully, but these errors were encountered:
The VS Code extension passes the indentation selected in the editor to the formatter, so if you want to use two spaces, use VS Code to choose 2 spaces for editing purposes, remove the formatter arguments, and everything should just work.
You may need to use VS Code settings to force 2 spaces when editing PHP and override its auto detection when opening existing files with other indentation types.
I want 2 spaces indentation so I set up
--space=2
in formatter arguments option of the extension but it seems-t4
is hardcoded when passing arguments to pretty-php.Can it be disabled ?
The text was updated successfully, but these errors were encountered: