This extension aims to improve your productivity and code quality by offering targeted suggestions and automated fixes for potential issues in your Dart codebase.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
The Dart Quick Fix extension provides additional quick fix options for common issues in Dart code. It enhances the built-in quick fix functionality in Visual Studio Code and offers additional suggestions to improve your code quality and productivity.
Features
Adds new quick fix options in the context menu for identified issues in Dart code.
Add a ternary check.
User(name)` -> `name != null ? User(name) : null`
We only have 1 for now. More comming soon!
Installation
Launch Visual Studio Code.
Open the Extensions view by clicking on the square icon on the left sidebar or by pressing Ctrl+Shift+X.
Search for "Dart Quick Fix" in the extensions marketplace.
Click on the "Install" button next to the "Dart Quick Fix" extension.
Usage
Open a Dart file in Visual Studio Code.
When an issue is identified, a light bulb icon will appear at the affected location in your code.
Click on the light bulb icon or press Ctrl+. to open the context menu.
Select the desired quick fix option from the list.
The quick fix action will automatically apply the suggested code transformation.
Contributing
Contributions are welcome! If you encounter any issues, have suggestions for improvements, or want to add new quick fix options, please submit an issue or a pull request to the GitHub repository.