目录 (点击展开)
主题
-
VSCode Great Icons - Visual Studio Marketplace
图标主题,不多说很多人用了都说好
-
eppz! (C# theme for Unity) - Visual Studio Marketplace
界面主题,一款专门为unity的C#设计的主题,但我觉得对其他语言的支持也很好。
Vim-键盘侠
Vim - Visual Studio Marketplace
我觉得是VSCode里最好用的,不要你觉得
实用功能
-
TODO Highlight - Visual Studio Marketplace
高亮
TODO:
、FIXME:
,方便自己、方便他人 -
Bracket Pair Colorizer - Visual Studio Marketplace
显示将不同级别的括号的颜色分开,方便区分,超过500行以上的代码,貌似渲染时会有点卡,多开会更明显,所以看情况
-
EditorConfig for VS Code - Visual Studio Marketplace
设置编辑器配置,目前用来同步Mac和Windows之间因末尾换行符不同不能git同步的问题
-
Better TOML - Visual Studio Marketplace
toml配置格式
-
Quokka.js - Visual Studio Marketplace
实时显示结果测试js或ts代码
setting.json 配置
{
// ---------------------
// ---------- 系统
"workbench.iconTheme": "vscode-great-icons", // 图标主题
"workbench.colorTheme": "One Dark Pro", // 界面主题
"window.zoomLevel": 2, // 放大模式 高分辨屏下可能是2
"editor.fontLigatures": true, // 开始合并连体字
"editor.lineNumbers": "relative", // 相对行号(vim时方便)
"editor.fontFamily": "'Fira Code', Consolas, 'Courier New', monospace", // 字体
"editor.formatOnSave": true, // 保存时整理
"editor.formatOnType": true, // 输入一行完后时整理
"files.eol": "\n", // 行尾设置成LF格
"explorer.confirmDelete": false,
// 搜索排除
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"build/": true,
"temp/": true,
"library/": true,
"**/*.anim": true
},
// 显示文件的排除
"files.exclude": {
"**/.git": true,
"**/.DS_Store": true,
"**/*.meta": true,
"library/": true,
"local/": true,
"temp/": true
},
// ---------------------
// ---------- vim相关配置
"vim.insertModeKeyBindings": [ // 插入模式下快捷绑定
{ "before": [ "<C-h>"], "after": [ "<Left>" ] },
{ "before": [ "<C-j>"], "after": [ "<Down>" ] },
{ "before": [ "<C-k>"], "after": [ "<Up>" ] },
{ "before": [ "<C-l>"], "after": [ "<Right>" ] },
{ "before": [ "j", "k" ], "after": [ "<Esc>" ] },
{ "before": [ "k", "k" ], "after": [ "<Esc>" ] },
],
"vim.normalModeKeyBindingsNonRecursive": [ // 正常模式下键绑定(非递归)
{
"before": [ "Z",
"Z"
],
"commands": [
":wq"
]
},
{
"before": [
"Z",
"Q"
],
"commands": [
":q!"
]
}
],
"vim.sneak": true,
// "[csharp]": {
// "editor.defaultFormatter": "ms-vscode.csharp"
// },
// "omnisharp.path": "latest",
// "omnisharp.waitForDebugger": true
// ---------------------
// ---------- go 相关配置
"go.formatTool": "goimports",
"go.useLanguageServer": true,
}
Snippet配置
"ShortSeparator_1": {
"prefix": "dfg1",
"body": [
"// ----------- $1",
],
"description": "短分隔符1"
},
"Separator_1": {
"prefix": "fg1",
"body": [
"// ----------- $1 --------------------------------------------------------",
],
"description": "分隔符1"
},
"Separator_2": {
"prefix": "fg2",
"body": [
"// == == == == $1 == == == == == == == == == == == == == == == == == == ==",
],
"description": "分隔符2"
},
"Separator_3": {
"prefix": "fg3",
"body": [
"// === === === $1 === === === === === === === === === === === === === ===",
],
"description": "分隔符3"
},
"reqFunctionWithParameter": {
"prefix": "reqLetuParameter",
"body": [
"let info:$2= {",
"",
"}",
"//请求 $3",
"let [respData, err] = await Letu.Net.$1(info);",
"if (err) {",
" //FIXME:请求 $3 错误",
" console.error('$3 >>错误:',err);",
" return;",
"}"
],
"description": "请求方法"
},
"reqFunction": {
"prefix": "reqLetu",
"body": [
"//请求 $2",
"let [respData, err] = await Letu.Net.$1();",
"if (err) {",
" //FIXME:请求 $2 错误",
" console.error('$2 >>错误:',err);",
" return;",
"}"
],
"description": "请求方法"
},
"setRegion": {
"prefix": "#reg",
"body": [
"//#region $1",
"//↓↓↓ === === === === === === === === === === === === === === === === === === === === ===",
"$2",
"//↑↑↑ === === === === === === === === === === === === === === === === === === === === ===",
"//#endregion $1",
],
"description": "分隔符3"
},
"define a new": {
"prefix": "zscc",
"body": [
"/** @type {cc$1} */",
"let a;",
"a$2"
],
"description": "方便快速取得函数名称"
}
评论