Skip to content

Support #Playground macro / swift play #1782

@MahdiBM

Description

@MahdiBM

Is your feature request related to a problem? Please describe.
This is an issue to track progress on #Playground and swift play support.
I'm not sure if there is much actionable right now.

Repo: https://github.com/apple/swift-play-experimental

Describe the solution you'd like
Xcode 26 supports a #Playground macro. The VSCode extension should too.
This is helpful for quick experiments.

Describe alternatives you've considered
Live on with swift repl or swift -e. Have a "playground file" which is ignored by git and manually run it from the command palette.

Additional context
I find myself using swift repl or swift -e a bunch of times every week, and the new #Playground macro could be a better alternatives to those.

Metadata

Metadata

Assignees

Labels

SwiftPMSwift Package ManagerenhancementNew feature or requestneeds verificationIssue has been fixed, but requires verification before closingplaygroundssourcekit-lspSourceKit-LSP issue

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions