Swift on Windows: VS Code vs VS 2022

Hi gang!

I recently needed to setup a toolchain on Windows in order to test some things. I followed the directions for installing on Windows with winget and they worked great. The thing I found confusing is that, as far as I can tell anyway, all the tooling support is in VS Code not Visual Studio 2022.

Is there supposed to be a VS 2022 plugin that we can use? I could only find the VS Code one. Should these instructions be updated to install VS Code instead?

Parts of the Visual Studio installation is required for the compilation. To edit a Swift (Swift Package Manager) project, use Visual Studio Code with the Swift extension by the Swift Server Group.

Thanks for the update.

I would suggest noting this in the installation guide, maybe even grabbing VSC with winget as well.

In theory, you can setup VS for swift. However, the interface is not stable and would need to be constantly updated for the different releases. I had a proof of concept a long time ago, but that no longer works. The majority of the community is interested in is VSCode, and thus where most of the current effort is targeted.

1 Like