当前位置:网站首页>Vscode automatically adds a semicolon and jumps to the next line
Vscode automatically adds a semicolon and jumps to the next line
2022-07-07 04:44:00 【iesoxj】
add to Macros plug-in unit
Add settings to settings.json
Ctrl+, Open Settings
Input : code action on save . And open settings.json
Insert the following code :
"macros":
{
"end_semicolon": // Add a semicolon at the end Line break
[
"cursorEnd",
{
"command": "type",
"args": {"text": ";\n"}
},
//{"command":"editor.action.insertLineAfter"}, // You can also use the command line feed
],
"end_colon": // Colon at the end Line break
[
"cursorEnd",
{
"command": "type",
"args": {"text": ":\n\t"}
},
],
}
Add user shortcuts keybindings.json
stay C:\Users\Administrator\AppData\Roaming\Code\User Under the new keybindings.json file
[
{
"key":"alt+;",
"command":"macros.end_semicolon"
},
{
"key": "alt+shift+;",
"command": "macros.end_colon"
},
]
边栏推荐
- ACL2022 | 分解的元学习小样本命名实体识别
- Windows are not cheap things
- Data security -- 12 -- Analysis of privacy protection
- jvm是什么?jvm调优有哪些目的?
- Tiktok may launch an independent grass planting community platform: will it become the second little red book
- Organize five stages of actual attack and defense drill
- What about the collapse of win11 playing pubg? Solution to win11 Jedi survival crash
- How to conduct website testing of software testing? Test strategy let's go!
- 软件测试之网站测试如何进行?测试小攻略走起!
- 浙江大学周亚金:“又破又立”的顶尖安全学者,好奇心驱动的行动派
猜你喜欢
Fix the problem that the highlight effect of the main menu disappears when the easycvr Video Square is clicked and played
acwing 843. n-皇后问题
Introduction to namespace Basics
视频融合云平台EasyCVR视频广场左侧栏列表样式优化
Mathematical analysis_ Notes_ Chapter 10: integral with parameters
[on automation experience] the growth path of automated testing
The easycvr platform is connected to the RTMP protocol, and the interface call prompts how to solve the error of obtaining video recording?
namespace基础介绍
Have you got the same "artifact" of cross architecture development praised by various industry leaders?
R语言主成分pca、因子分析、聚类对地区经济研究分析重庆市经济指标
随机推荐
This "advanced" technology design 15 years ago makes CPU shine in AI reasoning
每人每年最高500万经费!选人不选项目,专注基础科研,科学家主导腾讯出资的「新基石」启动申报
[digital analog] source code of MATLAB allcycles() function (not available before 2021a)
Structure actual training camp | after class homework | module 6
Complimentary tickets quick grab | industry bigwigs talk about the quality and efficiency of software qecon conference is coming
Detect when a tab bar item is pressed
What if win11 pictures cannot be opened? Repair method of win11 unable to open pictures
JS form get form & get form elements
Win11图片打不开怎么办?Win11无法打开图片的修复方法
Acl2022 | decomposed meta learning small sample named entity recognition
食堂用户菜品关系系统(C语言课设)
On the 110th anniversary of Turing's birth, has the prediction of intelligent machine come true?
[team learning] [34 issues] scratch (Level 2)
树与图的深度优先遍历模版原理
DFS和BFS概念及实践+acwing 842 排列数字(dfs) +acwing 844. 走迷宫(bfs)
R language principal component PCA, factor analysis, clustering analysis of regional economy analysis of Chongqing Economic Indicators
Up to 5million per person per year! Choose people instead of projects, focus on basic scientific research, and scientists dominate the "new cornerstone" funded by Tencent to start the application
Chapter 9 Yunji datacanvas was rated as 36 krypton "the hard core technology enterprise most concerned by investors"
用CPU方案打破内存墙?学PayPal堆傲腾扩容量,漏查欺诈交易量可降至1/30
ESG全球领导者峰会|英特尔王锐:以科技之力应对全球气候挑战