1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
zhangbk1
2024-03-28 19:03:31 +08:00
parent 17953f6927
commit be9952f6bc
6 changed files with 226 additions and 14 deletions

View File

@@ -16,8 +16,20 @@
"contributes": {
"commands": [
{
"command": "text-conversion.helloWorld",
"title": "Hello World"
"command": "extension.toCamelCase",
"title": "转小驼峰 To Camel Case"
},
{
"command": "extension.toPascalCase",
"title": "转大驼峰 To Pascal Case"
},
{
"command": "extension.toUpperCase",
"title": "转大写 To Upper Case"
},
{
"command": "extension.toLowerCase",
"title": "转小写 To Lower Case"
}
],
"keybindings": [
@@ -26,7 +38,27 @@
"key": "shift+alt+t",
"when": "editorTextFocus"
}
]
],
"menus": {
"editor/context": [
{
"when": "editorTextFocus",
"submenu": "extension.stringConversion"
}
],
"submenus": [
{
"id": "extension.stringConversion",
"when": "editorTextFocus",
"command": "extension.toCamelCase",
"label": "字符串转换"
},
{
"when": "editorTextFocus",
"command": "extension.toPascalCase"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
@@ -47,4 +79,4 @@
"@vscode/test-cli": "^0.0.8",
"@vscode/test-electron": "^2.3.9"
}
}
}