当前位置:网站首页>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
边栏推荐
- Introduction to the use of thread (2) thread
- 26. Reverse linked list II
- Set up CI server with Jenkins
- SQL JOIN 入门使用示例学习左连接、内连接、自连接
- Experience on how to improve the anti-interference of TTL (UART) communication
- Square root of 33.x
- 使用Jenkins搭建CI服务器
- Introduction to encryption technology
- 【C语言】动态内存管理
- 32. Maximum path sum in binary tree
猜你喜欢

2022.07.21

cookie
![[C language] detailed knowledge of document operation](/img/2a/f2976d80212d9a38ea0457916a1db9.png)
[C language] detailed knowledge of document operation

20201127 use markdown to draw UML diagrams, graphviz installation experience hematemesis finishing

About thread (3) thread synchronization

SSM hospital inpatient management system

Custom scroll bar

23. Spiral matrix

Deep and shallow copies of objects, extends

现代数据架构选型:Data Fabric、Data Mesh
随机推荐
34. Add two numbers
About packaging objects
Implement is by yourself_ default_ constructible
Introduction to encryption technology
C code specification
Raspberry pie self built NAS cloud disk -- raspberry pie built network storage disk
ESP32ADC
More functions and functions of the metauniverse lie in the deep transformation of the traditional way of life and production
The basis of point graph in the map of life information and knowledge
EAS environment structure directory
Where+or usage of SQL missing condition
26. Reverse linked list II
Cluster construction based on kubernetes v1.24.0 (II)
class
Finclip's "applet export app" function has been updated again by the company
Voice recognition based on MATLAB
SSM online examination system including documents
Usage of swipemenurecyclerview
Redis(13)----浅谈Redis的主从复制
Learn the calculation method of quantile value in n minutes