当前位置:网站首页>将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 |
边栏推荐
- Sleuth + Zipkin
- Important knowledge of golang: waitgroup parsing
- B. Integers Shop-Hello 2022
- 139. 单词拆分
- 电子学会图形化一级编程题解析:猫捉老鼠
- TCP协议三次握手和四次挥手抓包分析
- How strong is Jingdong's takeout after entering meituan and starving the hinterland?
- golang 重要知识:定时器 timer
- Gartner's latest report: development of low code application development platform in China
- 创建好后的模型,对Con2d, ConvTranspose2d ,以及归一化BatchNorm2d函数中的变量进行初始化
猜你喜欢

进阶开发阶段-势若悬丝的加粗开始. 现在的一小步,明年的一大步

这五年的6个编程感悟!

Arrays in JS

How can genetic testing help patients fight disease?

Shandong: food "hidden money", consumption "sweeping monk"

【无标题】激光焊接在医疗中的应用

Important knowledge of golang: sync Once explanation

Convert JSON file of labelme to coco dataset format

Sfod: passive domain adaptation and upgrade optimization, making the detection model easier to adapt to new data (attached with paper Download)
Explain in detail the principle and implementation of redis distributed lock
随机推荐
《ThreadLocal》
这五年的6个编程感悟!
Important knowledge of golang: sync Cond mechanism
HBuilderX-Light 主题能不能加个批注功能?
变压器只能转换交流电,那直流电怎么转换呢?
labelme的JSON文件转成COCO数据集格式
[普通物理] 半波损失 等厚与等倾干涉
This year's cultural entertainers have turned their sidelines into their main business
基因检测,如何帮助患者对抗疾病?
VIM backup history command
数组自带的方法
xcbdfbs xcvb
创建好后的模型,对Con2d, ConvTranspose2d ,以及归一化BatchNorm2d函数中的变量进行初始化
F5《2022年应用策略现状报告》:边缘部署及负载安全成亚太地区关注焦点
Six programming insights in these five years!
Object
get_edges
Explore the "store" on the cloud. The cloud store is newly upgraded!
MATLAB中iscellstr函数的使用
Print memory station information