当前位置:网站首页>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"
},
]
边栏推荐
- Both primary and secondary equipment numbers are 0
- 案例大赏:英特尔携众多合作伙伴推动多领域AI产业创新发展
- On the 110th anniversary of Turing's birth, has the prediction of intelligent machine come true?
- How to conduct website testing of software testing? Test strategy let's go!
- 《原动力 x 云原生正发声 降本增效大讲堂》第三讲——Kubernetes 集群利用率提升实践
- JetBrain Pycharm的一系列快捷键
- Win11图片打不开怎么办?Win11无法打开图片的修复方法
- 一图看懂!为什么学校教了你Coding但还是不会的原因...
- Lecture 3 of "prime mover x cloud native positive sounding, cost reduction and efficiency enhancement lecture" - kubernetes cluster utilization improvement practice
- [line segment tree practice] recent requests + area and retrieval - array modifiable + my schedule I / III
猜你喜欢
Win11图片打不开怎么办?Win11无法打开图片的修复方法
Have you got the same "artifact" of cross architecture development praised by various industry leaders?
NTU notes 6422quiz review (1-3 sections)
AI landing new question type RPA + AI =?
Digital chemical plants realize the coexistence of advantages of high quality, low cost and fast efficiency
Camera calibration (I): robot hand eye calibration
Break the memory wall with CPU scheme? Learn from PayPal to expand the capacity of aoteng, and the volume of missed fraud transactions can be reduced to 1/30
[team learning] [34 sessions] Alibaba cloud Tianchi online programming training camp
acwing 843. N-queen problem
The request request is encapsulated in uni app, which is easy to understand
随机推荐
R language principal component PCA, factor analysis, clustering analysis of regional economy analysis of Chongqing Economic Indicators
On the 110th anniversary of Turing's birth, has the prediction of intelligent machine come true?
System framework of PureMVC
C#使用西门子S7 协议读写PLC DB块
MySQL forgot how to change the password
案例大赏:英特尔携众多合作伙伴推动多领域AI产业创新发展
What is JVM? What are the purposes of JVM tuning?
Digital chemical plant management system based on Virtual Simulation Technology
深耕开发者生态,加速AI产业创新发展 英特尔携众多合作伙伴共聚
《原动力 x 云原生正发声 降本增效大讲堂》第三讲——Kubernetes 集群利用率提升实践
This "advanced" technology design 15 years ago makes CPU shine in AI reasoning
mpf2_线性规划_CAPM_sharpe_Arbitrage Pricin_Inversion Gauss Jordan_Statsmodel_Pulp_pLU_Cholesky_QR_Jacobi
Win11控制面板快捷键 Win11打开控制面板的多种方法
Implementation of JSTL custom function library
抖音或将推出独立种草社区平台:会不会成为第二个小红书
图灵诞辰110周年,智能机器预言成真了吗?
jvm是什么?jvm调优有哪些目的?
食堂用户菜品关系系统(C语言课设)
Is there any way to bookmark the code in the visual studio project- Is there a way to bookmark code in a Visual Studio project?
leetcode 53. Maximum Subarray 最大子数组和(中等)