VS Code Extension
DCM VS Code extension is responsible for starting the analysis process and displaying analysis errors.
To download the extension, view the extension page on VS Code Marketplace or simply search DCM
in the VS Code extensions panel.
Extension capabilities
All the errors calculated by the analysis process will be displayed in the opened files and in the "Problems view".
Quick fixes are also available, simply call the quick fix menu on the issue in the opened file.
You can quickly fix all fixable DCM rule issues with "DCM: Fix All Auto-fixable Problems" IDE command or via a shortcut ⌘ + Shift + S
.
To apply fixes on save, modify the settings.json
to the following:
{
"editor.codeActionsOnSave": {
"source.fixAll": true,
"source.dcm.fixAll": true
}
}
Assists
Wrap with ...
Extract to a new file
Analysis options files
If analysis_options.yaml
file is open, the extension will mark all rules that support additional config with ⚙️ icon.
You can also call code action menu on each rule to quickly change its severity, disable it or open the rule documentation.
Available commands
- DCM > Restart Analysis server
- DCM > Activate License key
- DCM > Share Feedback
- DCM > Capture All Logs
- DCM > Open Extension Log
- DCM > Fix All Auto-fixable Problems
- DCM > Format Current File
Available configuration
- Dart SDK path - is detected automatically if listed in PATH, but can be set up explicitly, if another version of the SDK should be used. FVM is also supported, if the project has a
.fvm/flutter_sdk
symlink - it will be used by the extension as well. - DCM executable path - is detected automatically if listed in PATH, but can be set up explicitly.
Changelog
See the changelog.