vscode配置常用的插件

本文详细介绍了如何在VSCode中进行个性化设置,包括编辑器字体大小、颜色主题、图标主题、代码片段、预设格式等,帮助提升开发效率和代码美观度。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.插件
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
2.setting
{
“workbench.colorTheme”: “Horla”,
“editor.fontSize”: 18,
“editor.fontWeight”: “300”,
“workbench.iconTheme”: “vscode-icons”,
“editor.tokenColorCustomizations”: {
“comments”: “#0400ffee”, // 注释
“keywords”: “#FF00CC”, // 关键字
“variables”: “#3399FF”, // 变量名
“strings”: “#c404ff”, // 字符串
“functions”: “#ff0000fd”, // 函数名
“numbers”: “#fc0000ee” // 数字
},
“editor.tabSize”: 2,
“editor.formatOnSave”: true,
“prettier.trailingComma”: “es5”,
“prettier.singleQuote”: true,
“terminal.integrated.shell.windows”: “D:\Git\bin\bash.exe”,//自己电脑gitbash的地址
“editor.mouseWheelZoom”: true,
“files.insertFinalNewline”: true,
“files.autoSave”: “off”,
“prettier.arrowParens”: “always”,
“prettier.useTabs”: true,
“editor.autoClosingOvertype”: “never”,
“editor.autoSurround”: “never”,
“vsicons.dontShowNewVersionMessage”: true,
“[html]”: {
“editor.defaultFormatter”: “esbenp.prettier-vscode”
},
“[vue]”: {
“editor.defaultFormatter”: “esbenp.prettier-vscode”
}
}

3.代码片段
{
// Place your snippets for properties here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
“Print to console”: {
“scope”: “editorconfig”,
“prefix”: “init”,
“body”: [
“root = true”,
“”,
“[]",
“charset = utf-8”,
“indent_size = 2”,
“indent_style = space”,
“end_of_line = lf”,
“trim_trailing_whitespace = true”,
“insert_final_newline = true”,
“tab_width = 2”,
“”,
"[
.md]”,
“trim_trailing_whitespace = false”
],
“description”: “init editorconfig”
}
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值