Swift installs statistics
By Swift · VS Code Marketplace · Programming Languages
Swift Language Support for Visual Studio Code.
Swift has 942,039 recorded installs on VS Code Marketplace, an increase of 5.3% over the past 30 days, ranking #563 of 2,515 tracked listings.
Rating: 4.94 / 5 from 17 ratings
About Swift
Swift for Visual Studio Code
This extension adds language support for Swift to Visual Studio Code, providing a seamless experience for developing Swift applications on all supported platforms. It supports features such as:
- Code completion
- Jump to definition, peek definition, find all references and symbol search
- Error annotations and fix suggestions
- Automatic generation of launch configurations for debugging with LLDB DAP
- Automatic task creation
- A Project Panel to quickly run actions and view dependencies
- Test Explorer view
Note
Most features of the Swift for Visual Studio Code extension only work with projects that build with Swift Package Manager. These projects will have aPackage.swiftfile in their root folder. Support for Xcode projects (.xcodeproj) is limited.
Creating New Projects
<img src="https://github.com/swiftlang/vscode-swift/raw/HEAD/assets/walkthrough/images/createNewProject.gif" width="700">Building and Running Executables
<img src="https://github.com/swiftlang/vscode-swift/raw/HEAD/assets/walkthrough/images/runExecutable.gif" width="700">Debugging Executables
<img src="https://github.com/swiftlang/vscode-swift/raw/HEAD/assets/walkthrough/images/debugExecutable.gif" width="700">Running Tests
<img src="https://github.com/swiftlang/vscode-swift/raw/HEAD/assets/walkthrough/images/runTests.gif" width="700">Documentation
The getting started guide and official documentation for this extension are available on swift.org.
This extension uses SourceKit LSP for the language server, which powers code completion. It also has a dependency on the LLDB DAP extension to enable debugging.
To propose new features, you can post on the swift.org forums in the VS Code Swift Extension category. If you run into something that doesn't work the way you'd expect, you can file an issue in the GitHub repository.
Extension API
The Swift extension exports a comprehensive API that can be used by other Visual Studio Code extensions. The API provides access to:
- Swift Toolchains: The active Swift toolchain both globally and on a per-project basis.
- Swift Projects: A list of all known Swift projects in the active workspace.
- SPM Packages: Swift Package Manager targets, products, dependencies, and plugins.
The API includes a version number that follows semantic versioning and is separate from the extension's version number. See the contributing guide for a more detailed explanation on when this version number is incremented.
Using the API
To use the API in your extension you can download the src/SwiftExtensionApi.ts file from this repository to get proper TypeScript type definitions. It is recommended that you download the version from a tagged release as main is not guaranteed to remain stable.
Example usage:
import { getSwiftExtensionApi, SwiftExtensionApi } from './SwiftExtensionApi';
// Get the Swift extension API
const api: SwiftExtensionApi = await getSwiftExtensionApi();
// Access workspace context
const workspaceContext = api.workspaceContext;
if (workspaceContext) {
// Get the toolchain version
const toolchain = workspaceContext.globalToolchain;
console.log(`Using Swift ${toolchain.swiftVersion}`);
// Listen for folder changes
workspaceContext.onDidChangeFolders((event) => {
console.log(`Folder operation: ${event.operation}`);
});
// Access the in focus folder and its Swift package
const currentFolder = workspaceContext.currentFolder;
if (currentFolder) {
const swiftPackage = currentFolder.swiftPackage;
const targets = await swiftPackage.targets;
console.log(`Found ${targets.length} targets`);
}
}
Contributing
The Swift for Visual Studio Code extension is based on an extension originally created by the Swift Server Working Group. It is now maintained as part of the swiftlang organization, and the original extension is deprecated. Contributions, including code, tests, and documentation, are welcome. For more details, refer to CONTRIBUTING.md.
To provide clarity on the expectations for our members, Swift has adopted the code of conduct outlined in the Contributor Covenant. This widely recognized document effectively encapsulates our values. For more information, please refer to the Code of Conduct.
Description from the VS Code Marketplace listing.
- debuggers
- json
- keybindings
- snippet
- sswg
- swift
- SwiftDocCTutorial
- SwiftGYB
- swift-gyb
- swiftlang
- tutorial
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Ratings over time
Listing placement
Listing placement
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Installs on a linear scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (50)Similar VS Code Marketplace Programming Languages plugins
All 20 Swift alternativesSwift on other marketplaces
Data source
Install counts, average rating, and rating counts come from the public Visual Studio Marketplace gallery API. Installs are cumulative and exclude updates.
Listing: https://marketplace.visualstudio.com/items?itemName=swiftlang.swift-vscode. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.