vscode-phpfmt icon indicating copy to clipboard operation
vscode-phpfmt copied to clipboard

Is it possible to disable deleting namespaces if I don't use them Yet

Open dseegers opened this issue 5 years ago • 1 comments

Hey there,

Thanks for making this amazing plug-in 👍 . I wondered if it was possible not to delete the namespaces if they are not being used yet. I often create Controllers (by copying) from other controllers. These have namespaces that will be used later (but not immediately). Now it is a bit unfortunate that these will be deleted if I format my code, haha :)

dseegers avatar Mar 14 '19 09:03 dseegers

Add in setting.json, "phpfmt.exclude": [ "OrderAndRemoveUseClauses" ], And it's done.

nomadbard916 avatar Apr 20 '19 06:04 nomadbard916