Installing a Preview Release/Nightly Build
The easiest way to try a pre-release version of the Dart and Flutter extensions is directly inside VS Code:

Pre-release versions are published for both the Dart and Flutter extensions ad-hoc, usually a couple of times in the few weeks prior to a stable release. Pre-release versions end with a date in YYYYMMDD format and use odd minor version numbers (for example v3.81.20240129). If you use Flutter, switch both the Dart and Flutter extensions to Pre-Release.
If there has not been a pre-release extension that includes the change you’d like to test you can either ping on the GitHub issue asking for one (it’s a trivial task) or install a nightly build directly yourself. Nightly builds are available on GitHub. Click on the most recent (the top-most) run and scroll down to the Artifacts section to download the nightly-build-vsix zip file, then extract the .vsix files (dart-code-<version>.vsix and flutter-<version>.vsix). (For stable releases, both .vsix files are also attached to each GitHub Release.)
- Open VS Code
- Run the Extensions: Install from VSIX command from the VS Code Command Palette
- Browse to the
dart-code-<version>.vsixfile you extracted - Wait for the Dart extension to install
- If you also use Flutter, repeat the Extensions: Install from VSIX command for
flutter-<version>.vsix - Click the Reload button on the VS Code notification that appears
If you receive a message about the Flutter extension depending on the Dart extension, you may need to first uninstall the Flutter extension and then follow the steps above (or re-install the Flutter extension from the VS Code Marketplace after installing dart-code-<version>.vsix).
Note: VS Code will still automatically update locally-installed extensions so once the marketplace contains a version that is newer than the one you installed, it may upgrade you. This is normally the desired behavior (you’ll be moved back to the stable version of what you were previewing once it is released) but it’s worth noting in case you explicitly install an older version and find VS Code reverted you to the (newer) stable version.