koroFileHeader文件注释:ctrl + command + i
koroFileHeader函数注释:ctrl + command + t
PHP Tools for VS Code(php工具包)
php cs fixer(需要brew install php-cs-fixer)
PHP Formatter(格式化代码PSR2)
PHP Snippets 输入p. 联想php方法和变量等
Visual Studio Intellicode:代码提示
php-lint:PHP错误检测
Code Spell Checker:单词拼写检查
注释:koroFileHeader
GitLens:点击某一行显示上次提交人和备注
Git History:右键某个文件,看历史提交
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "/Users/why/Desktop/go/gin-frame/main.go",
"env": {},
"args": []
}
]
}
{
"phpformatter.pharPath": "/usr/local/bin/php-cs-fixer", //本机的php-cs-fixer执行文件路径
"phpformatter.arguments": ["--rules=@PSR2"],
"editor.formatOnPaste": false,
"editor.formatOnSave": false,
"editor.formatOnType": true,
"window.zoomLevel": 0,
"editor.fontWeight": "300",
"editor.parameterHints": true,
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
},
"errorSquiggles": true,
"window.openFilesInNewWindow": "on",
"window.openFoldersInNewWindow": "on",
"workbench.colorTheme": "Flatland Monokai",
"workbench.iconTheme": "vscode-icons-mac",
"workbench.editor.enablePreview": false, //关闭预览模式,打开新文件新开窗口
"emmet.includeLanguages": {},
"todo-tree.tree.showCountsInTree": true,
"go.formatTool": "goimports",
"window.openWithoutArgumentsInNewWindow": "on",
"[json]": {},
"launch": {},
"css.remoteStyleSheets": [],
"php.validate.executablePath": "/usr/bin/php",
"php.validate.enable": false,
"php.executablePath": "/usr/bin/php",
"code-runner.runInTerminal": true,
//文件注释
"fileheader.customMade": {
//"Descripttion": "",
"Author": "weihaoyu"
//"CreatedTime": "Do not edit"
//"LastEditTime": "Do not Edit"
},
//函数注释
"fileheader.cursorMode": {
//"description": "",
//"param": "",
"author": "weihaoyu"
//"return": ""
},
//注释配置项
"fileheader.configObj": {
"autoAdd": false, // 检测文件没有头部注释,自动添加文件头部注释
"autoAddLine": 100, // 文件超过多少行数 不再自动添加头部注释
"autoAlready": true, // 只添加插件支持的语言以及用户通过`language`选项自定义的注释
// 自动添加头部注释黑名单
"prohibitAutoAdd": ["json"],
"prohibitItemAutoAdd": [
"项目的全称禁止项目自动添加头部注释, 使用快捷键自行添加"
],
"wideSame": false, // 头部注释等宽设置
"wideNum": 13, // 头部注释字段长度 默认为13
// 头部注释第几行插入
"headInsertLine": {
"php": 2 // php文件 插入到第二行
},
"beforeAnnotation": {}, // 头部注释之前插入内容
"afterAnnotation": {}, // 头部注释之后插入内容
"specialOptions": {}, // 特殊字段自定义
"switch": {
"newlineAddAnnotation": true // 默认遇到换行符(\r\n \n \r)添加注释符号
},
"moveCursor": true, // 自动移动光标到Description所在行
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"atSymbol": "@", // 更改所有文件的自定义注释中的@符号
"atSymbolObj": {}, // 更改单独语言/文件的@
"colon": ": ", // 更改所有文件的注释冒号
"colonObj": {}, // 更改单独语言/文件的冒号
"filePathColon": "路径分隔符替换", // 默认值: mac: / window是: \
"showErrorMessage": false, // 是否显示插件错误通知 用于debugger
"CheckFileChange": false, // 单个文件保存时进行diff检查
"createHeader": true, // 新建文件自动添加头部注释
"useWorker": false, // 是否使用工作区设置
"designAddHead": false, // 添加注释图案时添加头部注释
// 自定义语言注释符号,覆盖插件的注释格式
"language": {
"java": {
"head": "/$$",
"middle": " $ @",
"end": " $/"
},
// 一次匹配多种文件后缀文件 不用重复设置
"h/hpp/cpp": {
"head": "/*** ", // 统一增加几个*号
"middle": " * @",
"end": " */"
},
// 针对有特殊要求的文件如:test.blade.php
"blade.php": {
"head": "<!--",
"middle": " * @",
"end": "-->"
}
},
// 默认注释 没有匹配到注释符号的时候使用。
"annotationStr": {
"head": "/*",
"middle": " * @",
"end": " */",
"use": false
}
},
"C_Cpp.errorSquiggles": "Enabled",
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"breadcrumbs.enabled": true,
"editor.renderWhitespace": "all",
"editor.minimap.enabled": false,
"editor.showUnused": true,
"workbench.colorCustomizations": {
"editorUnnecessaryCode.border": "#DCDCDC"
},
"[php]": {
"editor.defaultFormatter": "Sophisticode.php-formatter"
},
"[go]": {
"editor.snippetSuggestions": "none",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
},
"files.eol": "\n", // formatting only supports LF line endings
"go.languageServerExperimentalFeatures": {
"format": true,
"autoComplete": true,
"rename": true,
"goToDefinition": true,
"hover": true,
"signatureHelp": true,
"goToTypeDefinition": true,
"goToImplementation": true,
"documentSymbols": true,
"workspaceSymbols": true,
"findReferences": true,
"diagnostics": false
},
"emmet.excludeLanguages": ["markdown"],
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
本文地址:https://blog.csdn.net/why444216978/article/details/106933095
如对本文有疑问, 点击进行留言回复!!
Springboot项目因为kackson版本问题启动报错解决方案
Java多线程下的其他组件之CyclicBarrier、Callable、Future和FutureTask详解
网友评论