当前位置:网站首页>Vscode configuration user code snippet (including deletion method)
Vscode configuration user code snippet (including deletion method)
2022-07-24 13:07:00 【godlike-icy】
One . Configure user code snippets
1. open vscode, Set the icon in the lower left corner :

2. Click new global code fragment 
3. Give a name , Be free to , But it's best to make it clear that this is the overall situation snippets, So my name is global.
4. Then come to the configuration interface
{
// Place your overall situation snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
// "Print to console": {
// "scope": "javascript,typescript",
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
" Arrow function ": {
// This is the name of the shortcut , For example, you input rr Press again tab It will show body Content set in
"prefix": "rr",
// Set the code snippet here , The format is as follows , In the middle of the $ Usage means that the cursor will move here after creation
// $1 $2 $3 It means order , Press tab Then it will jump to the corresponding position
"body": [
"const $1 =($2) =>{ ",
"$3",
"}"
],
"description": " Create shortcuts to arrow functions "
},
" Double flower brackets ": {
"prefix": "sk",
"body": [
"{
{ $1 }} ",
],
"description": " Create a shortcut to double curly braces "
}
}
5 . You can configure your favorite code snippets for efficient development , This is completely free .
Two . Delete user code snippets
Manual deletion required , Because this file is on your computer .( As for the default path, I won't post it , because mac and windows The paths are different ), But there are the following general shortcuts .
In general , stay vscode You can see the configuration file path above , Here's the picture .
If it's not shown , Remember in vscode Find it on the top see .

Check the display navigation trace , You can know the path .
however , There is a shortcut , You can find it in the resource manager without knowing the path .
vscode Open the to be deleted snippets file , Right click on the file name .
mac Choice in finder( Display during visit ),windows Select open in file explorer , You can quickly locate the file , Then delete it .
Last , If it's helpful, just like it .
Recommend similar articles :
https://juejin.cn/post/6844903869424599053
边栏推荐
- 36. Delete the penultimate node of the linked list
- Data + AI Summit 2022 PPT 下载
- C code specification
- Deep and shallow copies of objects, extends
- EfficientFormer:轻量化ViT Backbone
- 1.9. touch pad test
- About thread (5) thread pool
- Cluster construction based on kubernetes v1.24.0 (I)
- Introduction to the use of thread (2) thread
- 树莓派自建 NAS 云盘之——数据自动备份
猜你喜欢

Nearly 65billion pieces of personal information were illegally handled in seven years, and the investigation of didi network security review case was announced

Get the current month and year and the previous 11 months

34. Add two numbers

Data + AI summit 2022 PPT download

Make a fake! Science has exposed the academic misconduct of nature's heavy papers, which may mislead the world for 16 years

Summary of recent interviews

About the concept of thread (1)

Analysis of ISP one click download principle in stm32

The price of domestic flagship mobile phones is nearly 6000, but they can't even beat iphone12. It's clear who users choose

Modern data architecture selection: Data fabric, data mesh
随机推荐
Experience on how to improve the anti-interference of TTL (UART) communication
IUAP spring training data in 2022, Zhongtai training report
[datasheet] interpretation of phy lan8720 network chip
3.实现蛇和基本游戏界面
Make a fake! Science has exposed the academic misconduct of nature's heavy papers, which may mislead the world for 16 years
35.8. string conversion integer (ATOI)
基于Kubernetes v1.24.0的集群搭建(二)
Cluster construction based on kubernetes v1.24.0 (III)
Where+or usage of SQL missing condition
Compatibility problems of call, apply, bind and bind
Research on data governance quality assurance
setAttribute、getAttribute、removeAttribute
【C语言】详细的文件操作相关知识
Redis (13) -- on master-slave replication of redis
Vscode solves the problem of terminal Chinese garbled code
Getting started with SQL join use examples to learn left connection, inner connection and self connection
七月集训(第24天) —— 线段树
It is difficult for Chinese consumers and industrial chains to leave apple, and iPhone has too much influence
26. Reverse linked list II
Nacos deployment