当前位置:网站首页>将vscode打造无敌的IDE(14) tasks.json和launch.json配置详解,随心所欲添加自动化任务
将vscode打造无敌的IDE(14) tasks.json和launch.json配置详解,随心所欲添加自动化任务
2022-06-23 15:26:00 【奇妙之二进制】
vscode是一个轻量级的文本编辑器,但是它的扩展插件可以让他拓展成功能齐全的IDE,这其中就靠的是tasks.json和launch.json的配置。这两个文件需要存放在当前工程的.vscode目录下。
vscode预定义了一些变量供我们在json文件使用:
预定义变量
| 变量名 | 含义 |
|---|---|
| ${workspaceRoot} | 当前打开的文件夹的绝对路径+文件夹的名字 |
| ${workspaceRootFolderName} | 当前打开的文件夹的名字 |
| ${file} | 当前打开正在编辑的文件名,包括绝对路径,文件名,文件后缀名 |
| ${relativeFile} | 从当前打开的文件夹到当前打开的文件的路径如 当前打开的是test文件夹,当前的打开的是main.c,并有test/first/second/main.c那么此变量代表的是 first / second / main.c |
| ${fileBasename} | 当前打开的文件名+后缀名,不包括路径 |
| ${fileBasenameNoExtension} | 当前打开的文件的文件名,不包括路径和后缀名 |
| ${fileDirname} | 当前打开的文件所在的绝对路径,不包括文件名 |
| ${fileExtname} | 当前打开的文件的后缀名 |
| ${cwd} | 任务开始运行时的当前工作目录 |
| ${lineNumber} | 当前打开的文件&#x |
边栏推荐
- Slice() and slice() of JS
- TCP协议三次握手和四次挥手抓包分析
- mysql 系列:总体架构概述
- The meaning of FPGA abbreviations and words in engineering field
- F5 application strategy status report in 2022: edge deployment and load security become the focus of attention in the Asia Pacific Region
- golang 重要知识:定时器 timer
- MySQL transactions and locks
- Memory consistency and cache consistency
- Explore the "store" on the cloud. The cloud store is newly upgraded!
- B. Integers Shop-Hello 2022
猜你喜欢

Sleuth + Zipkin

Slice() and slice() of JS

stylegan2:analyzing and improving the image quality of stylegan

Introduction to the push function in JS

matlab: 如何从一些数据里知道是由哪些数据相加得出一个已知数
![[opencv450] salt and pepper noise demo](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
[opencv450] salt and pepper noise demo

Convert JSON file of labelme to coco dataset format

mysql事务与锁

SQL窗口函数怎么使用

MySQL series: storage engine
随机推荐
《利用CAS实现自旋锁》
Slice() and slice() of JS
npm 如何发包 删包
[MAE]Masked Autoencoders掩膜自编码器
mysql 系列:总体架构概述
图片保存:torchvision.utils.save_image(img, imgPath)
苹果 iPhone、三星手机等电子产品开始经平行进口渠道进入俄罗斯
医学影像分割的网站
【无标题】激光焊接在医疗中的应用
Analysis of TCP three-time handshake and four-time handshake
《ThreadLocal》
Matlab| sparse auxiliary signal denoising and pattern recognition in time series data
golang 重要知识:RWMutex 读写锁分析
MATLAB中iscellstr函数的使用
The idea and method of MySQL master-slave only synchronizing some libraries or tables
Diffraction of light
freemark 使用ftl文件 生成word
stylegan2:analyzing and improving the image quality of stylegan
MySQL series: storage engine
积分商城要如何做才能获取到利润