当前位置:网站首页>将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 |
边栏推荐
- TCP协议笔记
- Convert JSON file of labelme to coco dataset format
- C. Add One--Divide by Zero 2021 and Codeforces Round #714 (Div. 2)
- Explain in detail the principle and implementation of redis distributed lock
- B. Integers Shop-Hello 2022
- Sorting out and summarizing the handling schemes for the three major exceptions of redis cache
- golang 重要知识:waitgroup 解析
- Introduction to the push function in JS
- JS create an array (literal)
- System design and analysis - Technical Report - a solution for regularly clearing verification code
猜你喜欢

30. concatenate substrings of all words

Convert JSON file of labelme to coco dataset format

变压器只能转换交流电,那直流电怎么转换呢?

Leetcode 450.删除二叉搜索树中的结点

The "shoulder" of sales and service in the heavy truck industry, Linyi Guangshun deep ploughing product life cycle service

《ThreadLocal》

mysql事务与锁

电子学会图形化一级编程题解析:猫捉老鼠

JSON——学习笔记(消息转换器等)

Introduction to the push function in JS
随机推荐
Six programming insights in these five years!
VGG下载(.net文件和imagenet-vgg-verydeep-19)
英特尔Arc A380显卡消息汇总:跑分亮眼驱动拉胯 入门性价产品亟待优化
Memory consistency and cache consistency
OpenResty 基础
Redis集群操作的方法
请问期货开户去哪个平台好?网上期货开户安全吗?
Origin of sectigo (Comodo) Certificate
139. word splitting
MQ消息中间件理论详解
Which platform is a good place to open a futures account? Is it safe to open an online futures account?
进阶开发- 泛型入门基础类测试
C. Product 1 Modulo N-Codeforces Round #716 (Div. 2)
中大人脸素描FERET数据库(CUFSF)
基金开户是有什么风险?开户安全吗
mysql 系列:总体架构概述
Android kotlin collaboration Async
Pop() element in JS
C. Phoenix and Towers-Codeforces Global Round 14
freemark 使用ftl文件 生成word