madskristensen / CodeCleanupOnSave

Other
62 stars 7 forks source link

Add option to skip CodeCleanup on file with errors #12

Open Dreamescaper opened 3 years ago

Dreamescaper commented 3 years ago

CodeCleanup on save might not be the best idea on invalid files, it can break indentation, remove usings (which are needed, but roslyn doesn't know that because of errors). And save operation might still happen - maybe due to auto save configured, maybe due to muscle memory.