当前位置:网站首页>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"
},
]
边栏推荐
- Master the secrets of software security testing methods, and pinch the security test report with your hands
- Video fusion cloud platform easycvr video Plaza left column list style optimization
- A detailed explanation of head pose estimation [collect good articles]
- On the 110th anniversary of Turing's birth, has the prediction of intelligent machine come true?
- Basic idea of counting and sorting
- 食堂用户菜品关系系统(C语言课设)
- R语言主成分pca、因子分析、聚类对地区经济研究分析重庆市经济指标
- Lecture 3 of "prime mover x cloud native positive sounding, cost reduction and efficiency enhancement lecture" - kubernetes cluster utilization improvement practice
- VM virtual machine operating system not found and NTLDR is missing
- 【數模】Matlab allcycles()函數的源代碼(2021a之前版本沒有)
猜你喜欢
Programmers go to work fishing, so play high-end!
[on automation experience] the growth path of automated testing
这项15年前的「超前」技术设计,让CPU在AI推理中大放光彩
How to open win11 remote desktop connection? Five methods of win11 Remote Desktop Connection
EasyCVR集群版本添加RTSP设备提示服务器ID错误,该如何解决?
EasyCVR平台接入RTMP协议,接口调用提示获取录像错误该如何解决?
System framework of PureMVC
Why does WordPress open so slowly?
How do test / development programmers get promoted? From nothing, from thin to thick
kivy教程之设置窗体大小和背景(教程含源码)
随机推荐
軟件測試之網站測試如何進行?測試小攻略走起!
In cooperation with the research team of the clinical trial center of the University of Hong Kong and Hong Kong Gangyi hospital, Kexing launched the clinical trial of Omicron specific inactivated vacc
日常工作中程序员最讨厌哪些工作事项?
R language principal component PCA, factor analysis, clustering analysis of regional economy analysis of Chongqing Economic Indicators
Introduction to the PureMVC series
[untitled]
Some understandings about 01 backpacker
【数模】Matlab allcycles()函数的源代码(2021a之前版本没有)
组织实战攻防演练的5个阶段
Station B boss used my world to create convolutional neural network, Lecun forwarding! Burst the liver for 6 months, playing more than one million
The request request is encapsulated in uni app, which is easy to understand
九章云极DataCanvas公司摘获「第五届数字金融创新大赛」最高荣誉!
过气光刻机也不能卖给中国!美国无理施压荷兰ASML,国产芯片再遭打压
Win11远程桌面连接怎么打开?Win11远程桌面连接的五种方法
树与图的深度优先遍历模版原理
Programmers go to work fishing, so play high-end!
Zhou Yajin, a top safety scholar of Zhejiang University, is a curiosity driven activist
Structure actual training camp | after class homework | module 6
leetcode 53. Maximum Subarray 最大子数组和(中等)
Kotlin compose text supports two colors