当前位置:网站首页>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"
},
]
边栏推荐
- Depth first traversal template principle of tree and graph
- Camera calibration (I): robot hand eye calibration
- 什么是Web3
- 每人每年最高500万经费!选人不选项目,专注基础科研,科学家主导腾讯出资的「新基石」启动申报
- Thesis landing strategy | how to get started quickly in academic thesis writing
- Advertising attribution: how to measure the value of buying volume?
- 广告归因:买量如何做价值衡量?
- [team learning] [34 issues] scratch (Level 2)
- Jetson nano配置pytorch深度学习环境//待完善
- Zero knowledge private application platform aleo (1) what is aleo
猜你喜欢
[line segment tree practice] recent requests + area and retrieval - array modifiable + my schedule I / III
Lessons and thoughts of the first SQL injection
Introduction to namespace Basics
窗口可不是什么便宜的东西
NTU notes 6422quiz review (1-3 sections)
mpf2_ Linear programming_ CAPM_ sharpe_ Arbitrage Pricin_ Inversion Gauss Jordan_ Statsmodel_ Pulp_ pLU_ Cholesky_ QR_ Jacobi
深入解析Kubebuilder
[team learning] [34 sessions] Alibaba cloud Tianchi online programming training camp
Win11图片打不开怎么办?Win11无法打开图片的修复方法
Chapter 9 Yunji datacanvas was rated as 36 krypton "the hard core technology enterprise most concerned by investors"
随机推荐
What if the win11 screenshot key cannot be used? Solution to the failure of win11 screenshot key
Some understandings about 01 backpacker
R language principal component PCA, factor analysis, clustering analysis of regional economy analysis of Chongqing Economic Indicators
Implementation of JSTL custom function library
[digital analog] source code of MATLAB allcycles() function (not available before 2021a)
How to conduct website testing of software testing? Test strategy let's go!
The worse the AI performance, the higher the bonus? Doctor of New York University offered a reward for the task of making the big model perform poorly
B站大佬用我的世界搞出卷积神经网络,LeCun转发!爆肝6个月,播放破百万
深耕开发者生态,加速AI产业创新发展 英特尔携众多合作伙伴共聚
Have you got the same "artifact" of cross architecture development praised by various industry leaders?
Jetson nano配置pytorch深度学习环境//待完善
DFS and BFS concepts and practices +acwing 842 arranged numbers (DFS) +acwing 844 Maze walking (BFS)
Five years of automated testing, and finally into the ByteDance, the annual salary of 30W is not out of reach
Why does WordPress open so slowly?
MySQL forgot how to change the password
leetcode 53. Maximum Subarray 最大子数组和(中等)
用CPU方案打破内存墙?学PayPal堆傲腾扩容量,漏查欺诈交易量可降至1/30
深入解析Kubebuilder
软件测试之网站测试如何进行?测试小攻略走起!
计数排序基础思路