PHPStorm auto indenting complete file every few seconds

I am working on a very large old php file with broken indentation. Everytime I make a change to the code, PHPStorm is auto indenting the whole file. I cannot commit these indentation changes as I am not allowed to make thousands of code changes to this file.

Also when I revert these indentation changes, after some seconds PHPStorm is auto indenting the code again which making it difficult for me to work on this file.

0
1 comment

Hi there,

IDE does not change indentation just like that. You need to invoke "Code | Reformat Code..." .. which requires user invocation or perhaps some plugin (e.g. Save Actions or similar)

For me that sounds like some external modification (e.g. CodeSniffer tool or alike ... or some File Watcher perhaps .. or maybe you have custom plugin that does certain things on File Save). Check your settings and disable all such stuff first.

1

Please sign in to leave a comment.