Auto Fix - Studio
Autofix is a feature, where static code analysis issues can be fixed automatically with the click of a button.
Make sure you have:
|
Enable Autofix
-
Go to
Window
→Preferences
→IZ Preferences
, andSync Metadata
if not done already -
Click on
Enable Auto Fix
Auto Fix Issues
-
Go to
Window
→Show View
→other
→IZ Analyzer
→ selectOn the Fly Results
-
Preview
andFix
options will be available inOn the Fly Results
table against applicable rules -
Use the
Preview
option to view the list of changes that theFix
would perform. No files will be updated in preview mode -
Use the
Fix
option to apply the fix to applicable files