当前位置:网站首页>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
边栏推荐
- 如何画 贝赛尔曲线 以及 样条曲线?
- I 用c I 实现 大顶堆
- How can flinksql run in perjob mode on yarn? I submit tasks on SqlClient
- English grammar_ Indefinite pronouns - Overview
- 31. Climb stairs
- SSM online campus album management platform
- Proxy
- 2022.07.15 summer training personal qualifying (10)
- 编写浏览器插件
- Windivert: capture and modify packages
猜你喜欢

EAS environment structure directory

Summary of recent interviews
![[datasheet] interpretation of cs5480 data book of metering chip](/img/1a/e8a4ce5c393a6634b6dc8bf6d687e2.png)
[datasheet] interpretation of cs5480 data book of metering chip

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

基于matlab的声音识别

34. Add two numbers

Vscode solves the problem of terminal Chinese garbled code

How to draw Bezier curve and spline curve?

SSM在线校园相册管理平台

Roller_ Block default behavior_ Zero roll event compatible
随机推荐
AtCoder Beginner Contest 261E // 按位思考 + dp
Modification of EAS login interface
How to mount NFS shares using autofs
The sixth question of ape Anthropology
Cluster construction based on kubernetes v1.24.0 (II)
猿人学第七题
Localstorage
34. Add two numbers
The second batch of projects of Shenzhen Metro Line 12 passed the acceptance and is expected to be put into trial operation on July 28
元宇宙更多的功能和作用在于对于传统生活方式和生产方式的深度改造
Nearly 65billion pieces of personal information were illegally handled in seven years, and the investigation of didi network security review case was announced
Efficientformer: lightweight vit backbone
Case summary of SSH service suddenly unable to connect
EAS environment structure directory
leetcode第 302 场周赛复盘
C code specification
基于matlab的语音处理
Analysis of ISP one click download principle in stm32
Research on data governance quality assurance
SSM online rental and sales platform multi city version