Skip to main content

VS Code Extension update to auto-fix individual lint rule violations

· One min read

​ We’ve just released v1.0.4 of the APIMatic VS Code Extension, and it introduces a major developer experience improvement: individual rules auto fixing for validation and linting issues.

What’s New

Until now, auto fixing applied to the entire API workspace - but with v1.0.4, you now have granular control. You can:

  • Auto fix all instances of a specific violation
  • Auto fix just a single instance of a violation

This gives you full flexibility to resolve issues selectively, instead of applying broad changes across your entire API definition.

How It Works

Auto Fix a Specific Violation

  1. Open the Workspace Validation Summary
  2. Hover over a rule with violations
  3. Click the 💡 icon to auto fix all instances of that violation

Auto Fix Violation

Auto Fix a Specific Instance

  1. Scroll to the violations list
  2. Hover over a specific occurrence
  3. Click the 💡 icon to apply the fix only to that instance

Auto Fix Violation

These features make it easier than ever to iteratively clean up and improve your OpenAPI definition with precision.

Learn More

Check out the Auto Fixing Guide for step-by-step instructions.