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.
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!
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.
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.
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.