当前位置:网站首页>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"
},
]边栏推荐
- 树与图的深度优先遍历模版原理
- Comment les tests de logiciels sont - ils effectués sur le site Web? Testez la stratégie!
- mpf2_ Linear programming_ CAPM_ sharpe_ Arbitrage Pricin_ Inversion Gauss Jordan_ Statsmodel_ Pulp_ pLU_ Cholesky_ QR_ Jacobi
- The root file system of buildreoot prompts "depmod:applt not found"
- 用CPU方案打破内存墙?学PayPal堆傲腾扩容量,漏查欺诈交易量可降至1/30
- Common methods of list and map
- Practice Guide for interface automation testing (middle): what are the interface testing scenarios
- Thesis landing strategy | how to get started quickly in academic thesis writing
- 深入解析Kubebuilder
- Five years of automated testing, and finally into the ByteDance, the annual salary of 30W is not out of reach
猜你喜欢

Win11截图键无法使用怎么办?Win11截图键无法使用的解决方法
![[team learning] [34 issues] scratch (Level 2)](/img/29/8383d753eedcffd874bc3f0194152a.jpg)
[team learning] [34 issues] scratch (Level 2)

What if win11 pictures cannot be opened? Repair method of win11 unable to open pictures

深入解析Kubebuilder

【实践出真理】import和require的引入方式真的和网上说的一样吗

DFS和BFS概念及实践+acwing 842 排列数字(dfs) +acwing 844. 走迷宫(bfs)

NTU notes 6422quiz review (1-3 sections)

kivy教程之设置窗体大小和背景(教程含源码)
![[team learning] [phase 34] Baidu PaddlePaddle AI talent Creation Camp](/img/eb/9aed3bbbd5b6ec044ec5542297f3c6.jpg)
[team learning] [phase 34] Baidu PaddlePaddle AI talent Creation Camp

How to open win11 remote desktop connection? Five methods of win11 Remote Desktop Connection
随机推荐
图灵诞辰110周年,智能机器预言成真了吗?
Ssm+jsp realizes the warehouse management system, and the interface is called an elegant interface
深耕开发者生态,加速AI产业创新发展 英特尔携众多合作伙伴共聚
MySQL forgot how to change the password
组织实战攻防演练的5个阶段
Five years of automated testing, and finally into the ByteDance, the annual salary of 30W is not out of reach
Programmers go to work fishing, so play high-end!
Nanopineo use development process record
抖音或将推出独立种草社区平台:会不会成为第二个小红书
树与图的深度优先遍历模版原理
Introduction to namespace Basics
A picture to understand! Why did the school teach you coding but still not
Chapter 9 Yunji datacanvas company won the highest honor of the "fifth digital finance innovation competition"!
Tiktok may launch an independent grass planting community platform: will it become the second little red book
What work items do programmers hate most in their daily work?
Detect when a tab bar item is pressed
一度辍学的数学差生,获得今年菲尔兹奖
Thesis landing strategy | how to get started quickly in academic thesis writing
System framework of PureMVC
The request request is encapsulated in uni app, which is easy to understand