vscode swift hello world

复制代码
curl -O https://download.swift.org/swiftly/linux/swiftly-$(uname -m).tar.gz && \
tar zxf swiftly-$(uname -m).tar.gz && \
./swiftly init --quiet-shell-followup && \
. ~/.local/share/swiftly/env.sh && \
hash -r

.bashrc:export PATH="/home/chen/.local/share/swiftly/bin:$PATH"

按下 ctrl+shift+p

swift:create new project

选executable

参考:Swift.org - Configuring VS Code for Swift Development

Swift.org - Install Swift

相关推荐
怪兽20141 小时前
fastjson在kotlin不使用kotlin-reflect库怎么使用?
android·开发语言·kotlin
ClearLiang1 小时前
Kotlin-协程的挂起与恢复
开发语言·kotlin
彭同学学习日志1 小时前
Kotlin Fragment 按钮跳转报错解决:Unresolved reference ‘floatingActionButton‘
android·开发语言·kotlin
海域云赵从友1 小时前
破解跨境数据传输瓶颈:中国德国高速跨境组网专线与本地化 IP 的协同策略
开发语言·php
咚咚王者1 小时前
人工智能之编程进阶 Python高级:第九章 爬虫类模块
开发语言·python
2501_915918411 小时前
移动端 HTTPS 抓包实战,多工具组合分析与高效排查指南
数据库·网络协议·ios·小程序·https·uni-app·iphone
深蓝海拓2 小时前
使matplot显示支持中文和负号
开发语言·python
Digitally2 小时前
解决“Move to iOS 卡在准备中”的 9 种有效方法
macos·ios·cocoa
syt_biancheng2 小时前
Day3算法训练(简写单词,dd爱框框,3-除2!)
开发语言·c++·算法·贪心算法
864记忆3 小时前
Qt Network 模块中的函数详解
开发语言·网络·qt