fvm icon indicating copy to clipboard operation
fvm copied to clipboard

[Feature Request] Improve documentation about Automatic Switching (VSCode)

Open martin-braun opened this issue 2 years ago • 0 comments

First of all, thanks for this great tool. Google should've thought about something like that when they started introducing breaking changes over and over again.

Is your feature request related to a problem? Please describe. For some reason I lacked to understand the basic work-flow when it comes to Automatic Switching, namely how the user initializes the required Flutter SDK at .fvm/flutter_sdk. I was also confused how to link the current SDK or how to initiate such. I also didn't understand where the Flutter version for the current project is configured, so someone who clones my repository can properly install the right version.

Describe the solution you'd like I'd love to have an example on how to set up Automatic Switching incl. linking the files into .fvm/flutter_sdk as well as how another person clones my repo and setups Flutter using fvm.

Describe alternatives you've considered I've created the .vscode/settings.json and then I was confused. I also don't understand what I have to set in dart.sdkPaths.

fvm doctor reported that I was missing the FVM config, but it is not well documented how to create one. The missing piece was to use fvm use {version}, so it would use the version and create my .fvm folder. This would be nice to be featured within the "Automatic Switching" section in the docs.

Now that I have my fvm_config.json I figured that I can simply do fvm install && fvm use to initiate the project from a clean clone. I had to use some guess work.

martin-braun avatar Apr 12 '22 22:04 martin-braun