1.Enable Developer Mode
in Settings/Update&Security/ForDevelopers
2.Install WSL (Windows Subsystem for Linux)
in ControlPanel/ProgramsAndFeatures/TurnWindowsFeaturesOn-Off
3.Install Ubuntu 20.04
4.Bash on Ubuntu>ubuntu2004
4.1Terminal commands
Windows file system: /mnt/c Change Directory: cd
List Contents of Directory: ls
Move or Rename a File: mv
Copy a File: cp
Delete a File: rm
Create a Directory: mkdirClear terminal: clear
Use a Text Editor: vi or nano5.Version info
> lsb_release -a
6.Install Swift
7.Swift + CLI, Linux
Add swift's path:
export PATH=/mnt/c/tmp/swift/usr/bin:"${PATH}"
to the end of:
\\wsl$\Ubuntu-20.04\home\vas\.bashrc
$ mkdir Hello
$ cd Hello
$ swift package init --type executable
$ swift run Hello //VS Code + WSL Extension
$ code Sources/Hello/main.swift


Комментариев нет:
Отправить комментарий