一、安装
1、下载链接:https://code.visualstudio.com/download
2、VSCode-darwin-stable.zip 解压缩,得到可执行文件。
3、把执行文件复制到 “应用程序”
二、简介
VS Code:Visual Studio Code,定义为一个免费的、开源的跨平台编辑器。
三、资源管理器
setting.json
和用户设置一样。但只作用于当前文件夹
launch.json
tasks.json
任务系统的配置文件。
group:分组。 有build(编译生成)、test(测试)、none 三种。
presentation:控制任务运行时,是否自动调出运行的界面。
options:
problemMatcher:
type: 一种当进程来运行,一种是在shell中当命令行还执行
label:任务的名字
command:表示shell运行哪个命令或者运行哪个程序
{"version": "2.0.0","tasks": [{"label": "test shell","type": "shell","command": "./scripts/test.sh","windows": {"command": ".\\scripts\\test.cmd"},"group": "test","presentation": {"reveal": "always","panel": "new"},"options": {"cwd": "","env": {},"shell": {"executable": "bash"}}}]}
四、常用快捷键
| ctrl+` | 打开终端 | |
|---|---|---|
| cmd+shift+P | 打开命令面板 | |
