1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

Merge branch 'main' of git.only4.work:coder-xiaomo/text-conversion-vscode-extension

This commit is contained in:
zhangbk1
2024-04-03 09:59:16 +08:00
5 changed files with 307 additions and 178 deletions

View File

@@ -17,10 +17,6 @@
"activationEvents": [],
"contributes": {
"commands": [
{
"command": "extension.convertCase",
"title": "字符串转换"
},
{
"command": "extension.toCamelCase",
"title": "小驼峰 / 驼峰命名 (Camel Case) [ fooBar ]"
@@ -52,30 +48,6 @@
{
"command": "extension.toCamelSnakeCase",
"title": "驼峰蛇形命名 (Camel Snake Case) [ Foo_Bar ]"
},
{
"command": "editor.action.transformToCamelcase",
"title": "[VSCode 自带] 驼峰式大小写 (Camel Case) [ fooBar ]"
},
{
"command": "editor.action.transformToKebabcase",
"title": "[VSCode 自带] Kebab 命名 (Kebab Case) [ foo-bar ]"
},
{
"command": "editor.action.transformToTitlecase",
"title": "[VSCode 自带] 词首字母大写 (Title Case) [ Foo Bar ]"
},
{
"command": "editor.action.transformToLowercase",
"title": "[VSCode 自带] 转换为小写 (Lower Case) [ foo bar ]"
},
{
"command": "editor.action.transformToUppercase",
"title": "[VSCode 自带] 转换为大写 (Upper Case) [ FOO BAR ]"
},
{
"command": "editor.action.transformToSnakecase",
"title": "[VSCode 自带] 转换为蛇形命名法 (Snake Case) [ foo_bar ]"
}
],
"keybindings": [
@@ -87,15 +59,10 @@
],
"menus": {
"editor/context": [
{
"when": "editorTextFocus",
"command": "extension.convertCase",
"group": "1_modification@9"
},
{
"when": "editorTextFocus && _textSelectionLength >= 1",
"submenu": "extension.stringConversionMenu",
"group": "1_modification@9"
"group": "navigation@9"
}
],
"extension.stringConversionMenu": [
@@ -130,30 +97,6 @@
{
"command": "extension.toCamelSnakeCase",
"group": "group-extension"
},
{
"command": "editor.action.transformToCamelcase",
"group": "group-vscode"
},
{
"command": "editor.action.transformToKebabcase",
"group": "group-vscode"
},
{
"command": "editor.action.transformToTitlecase",
"group": "group-vscode"
},
{
"command": "editor.action.transformToLowercase",
"group": "group-vscode"
},
{
"command": "editor.action.transformToUppercase",
"group": "group-vscode"
},
{
"command": "editor.action.transformToSnakecase",
"group": "group-vscode"
}
]
},