Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Swift LookUpNew to Visual Studio Code? Get it now.
Swift LookUp

Swift LookUp

Preview

Kester A.

|
1 install
| (1) | Free
Cmd+Click navigation and reference search for Swift files.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Swift LookUp

Cmd+Click navigation for Swift files in VS Code.

Swift LookUp demo

Swift LookUp adds a lightweight Go to Definition provider and basic Find All References support for .swift files. It is built for projects where you want quick navigation without waiting on a full language server setup.

What it supports

The extension scans workspace Swift files for common declarations:

struct ProfileView: View {}
class UserStore {}
enum Route {}
protocol AuthService {}
actor DataLoader {}
func makeProfileView() {}
let appName = "Demo"
var isEnabled = true
typealias UserID = String

When VS Code finds a match, Cmd+Hover shows the clickable underline and Cmd+Click jumps to the declaration.

The lookup ranks candidates before jumping. For example, this call:

trackerStore.trackerName(for: trackerID)

prefers:

func trackerName(for trackerID: UUID) -> String?

rather than:

let trackerName: String

Features

  • Go to Definition for Swift symbols.
  • Cmd+Hover and Cmd+Click support through VS Code's native definition API.
  • Basic Find All References support.
  • Ranking for duplicate names, with same-file and same-folder matches preferred.
  • Function-call detection, so name(...) prefers func name over let name.
  • Line comments and string literals are ignored during reference search.

Limits

This extension uses text-based scanning. It does not replace SourceKit-LSP.

It can miss or mis-rank symbols in projects with heavy overloads, generated code, cross-module symbols, nested declarations, or multiple declarations with the same name.

Development

  1. Run npm install.
  2. Run npm run compile.
  3. Open this folder in VS Code.
  4. Press F5 to launch an Extension Development Host.
  5. Open a Swift project in that host and try Cmd+Click on Swift symbols.

Packaging

npm run package

That creates a .vsix file you can install locally or upload to the Visual Studio Marketplace.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft