VS code에서 swift 개발하기 (Visual Studio code에서 스위프트 컴파일)
글 작성자: 만렙개발자
1. swift for windows 설치하기
https://swiftforwindows.github.io/
Swift for Windows
SwiftForWindows.github.io
2. code-runner vs code extension 설치하기
https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner
Code Runner - Visual Studio Marketplace
Extension for Visual Studio Code - Run C, C++, Java, JS, PHP, Python, Perl, Ruby, Go, Lua, Groovy, PowerShell, CMD, BASH, F#, C#, VBScript, TypeScript, CoffeeScript, Scala, Swift, Julia, Crystal, OCaml, R, AppleScript, Elixir, VB.NET, Clojure, Haxe, Obj-C,
marketplace.visualstudio.com
3. settings.json에
{
"code-runner.executorMap": {
"swift": "cd $dir && C:\\Swift\\bin\\swiftc.exe -swift-version 4 $fileName -o C:\\Swift\\RuntimeEnv\\$fileNameWithoutExt.exe && C:\\Swift\\bin\\run.bat && C:\\Swift\\RuntimeEnv\\$fileNameWithoutExt.exe",
},
}
reference: https://nshipster.com/vscode/
'👾 잔잔바리 > Swift' 카테고리의 다른 글
[Swift] 기초(3/5) - 옵셔널, 구조체, 클래스 (0) | 2020.06.21 |
---|---|
[Swift] 기초(2/5) - 조건문, 반복문, 제어전달문, 클로저, 열거형 (0) | 2020.06.12 |
[Swift] 기초(1/5) - 욕심쟁이 스위프트와 변수와 상수, 기본 데이터 타입 및 컬렉션 (0) | 2020.06.10 |
댓글
이 글 공유하기
다른 글
-
[Swift] 기초(3/5) - 옵셔널, 구조체, 클래스
[Swift] 기초(3/5) - 옵셔널, 구조체, 클래스
2020.06.21 -
[Swift] 기초(2/5) - 조건문, 반복문, 제어전달문, 클로저, 열거형
[Swift] 기초(2/5) - 조건문, 반복문, 제어전달문, 클로저, 열거형
2020.06.12 -
[Swift] 기초(1/5) - 욕심쟁이 스위프트와 변수와 상수, 기본 데이터 타입 및 컬렉션
[Swift] 기초(1/5) - 욕심쟁이 스위프트와 변수와 상수, 기본 데이터 타입 및 컬렉션
2020.06.10