- winget is your
brew
\apt
winget install Microsoft.VisualStudio.2022.Community
winget install Microsoft.VisualStudioCode
winget install Microsoft.WindowsTerminal
winget install Microsoft.PowerShell
winget install Git.Git
winget install Ninja-build.Ninja
- Visual Studio Community
- Select C++ development component and make sure that CMake is selected
- Microsoft Terminal looks and works great
- Git for Windows also installs
bash
and some useful UNIX tools we're all used to (ls, grep, vim) which might make switching to Windows more comfortable. You can configure it to be used inside Terminal. Important: it will not see Windows SDK. Hopefully such configuration is possible and someone can share it. - Screenshot of Windows Terminal settings with Bash configuration
- Put attached bashrc to
%USERPROFILE%/.bashrc
. It's basically copied from Ubuntu/WSL.
- Git for Windows also installs
- Install Swift Toolchain
- At the moment of writing official Swift Toolchain for Windows doesn't compile samples from The Browser Company. Use toolchain provided by them: https://github.com/thebrowsercompany/swift-build/releases
- Install Swift Lint and make sure it is PATH: https://github.com/thebrowsercompany/swift-build/releases/tag/SwiftLint-DEVELOPMENT-SNAPSHOT-2023-08-12-a
- Install Swift Format and make sure it is in PATH: https://github.com/nicklockwood/SwiftFormat/releases/tag/0.52.11
- Add your development/project folder to Windows Defender exclusion path: https://support.microsoft.com/en-us/windows/add-an-exclusion-to-windows-security-811816c0-4dfd-af4a-47e4-c301afe13b26
- Swift VSCode Extension
- CMake Language Support
- CMake Tools
- Swift Format
- Make sure that search paths are correct: vknabel/vscode-apple-swift-format#40 (comment)
- Swift Lint
- Make sure that search paths are correct: vknabel/vscode-swiftlint#67
- VSCode configuration for Windows C/C++ Development
- Important: Run VSCode from Developer Command Prompt! If you don't it will not see Windows SDK correctly
- Alt: Instructions on running VSCode outside Developer Command Prompt
- Configuration to run Developer Prompt inside VSCode