Hi everyone,
I've encountered an issue with code formatting in Visual Studio Code when using the PHP Devsense extension. When I comment out the entire function and save the file, the extension removes the indentation, as shown in the following example:
/* public function example()
{
$a = '1';
$b = '2';
$c = '3';
if ($a == '1') {
if ($b == '2') {
if ($c == '3') {
echo 'ok';
}
}
}
} */
The expected behavior would be to maintain the indentation even when the code is commented out. I have tested this issue on my version of Visual Studio Code 1.78 and the version of the PHP extension v1.34.13083.
I have tried uninstalling and reinstalling the extension, but the issue persists. Has anyone else encountered this problem? Do you have any suggestions on how to resolve it?
Thanks in advance for your support!