1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee
variable-conversion-vscode-.../package.json

160 lines
4.4 KiB
JSON
Raw Normal View History

2024-03-28 14:31:47 +08:00
{
"name": "text-conversion",
"displayName": "text-conversion",
"description": "",
"version": "0.0.1",
"engines": {
"vscode": "^1.87.0"
},
"categories": [
"Other"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "extension.convertCase",
"title": "字符串转换"
},
2024-03-28 14:31:47 +08:00
{
2024-03-28 19:03:31 +08:00
"command": "extension.toCamelCase",
"title": "小驼峰 / 驼峰命名 (Camel Case) [ fooBar ]"
2024-03-28 19:03:31 +08:00
},
{
"command": "extension.toPascalCase",
"title": "大驼峰 / 帕斯卡命名 (Pascal Case) [ FooBar ]"
},
{
"command": "extension.toKebabCase",
"title": "连字符 / 脊柱式命名 (Kebab Case / Spinal Case) [ foo-bar ]"
},
{
"command": "extension.toSnakeCase",
"title": "下划线 / 蛇形命名 (Snake Case) [ foo_bar ]"
},
{
"command": "extension.toSnakeUpperCase",
"title": "下划线大写 (Snake Upper Case) [ FOO_BAR ]"
2024-03-28 19:03:31 +08:00
},
{
"command": "extension.toUpperCase",
"title": "全大写 (Upper Case) [ FOOBAR ]"
2024-03-28 19:03:31 +08:00
},
{
"command": "extension.toLowerCase",
"title": "全小写 (Lower Case) [ foobar ]"
},
{
"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 ]"
2024-03-28 14:31:47 +08:00
}
],
"keybindings": [
{
"command": "extension.convertCase",
"key": "shift+alt+t",
"when": "editorTextFocus"
}
2024-03-28 19:03:31 +08:00
],
"menus": {
"editor/context": [
{
"when": "editorTextFocus",
"command": "extension.convertCase",
"group": "1_modification@9"
},
{
"submenu": "extension.stringConversionMenu",
"group": "1_modification@9"
2024-03-28 19:03:31 +08:00
}
],
"extension.stringConversionMenu": [
2024-03-28 19:03:31 +08:00
{
"command": "extension.toCamelCase",
"group": "group-extension"
2024-03-28 19:03:31 +08:00
},
{
"command": "extension.toPascalCase",
"group": "group-extension"
},
{
"command": "extension.toUpperCase",
"group": "group-extension"
},
{
"command": "extension.toLowerCase",
"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"
2024-03-28 19:03:31 +08:00
}
]
},
"submenus": [
{
"id": "extension.stringConversionMenu",
"label": "将字符串转换为..."
}
]
2024-03-28 14:31:47 +08:00
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "vscode-test"
},
"devDependencies": {
"@types/mocha": "^10.0.6",
"@types/node": "18.x",
"@types/vscode": "^1.87.0",
2024-03-28 14:31:47 +08:00
"@typescript-eslint/eslint-plugin": "^7.4.0",
"@typescript-eslint/parser": "^7.4.0",
"@vscode/test-cli": "^0.0.8",
"@vscode/test-electron": "^2.3.9",
"eslint": "^8.57.0",
"typescript": "^5.3.3"
2024-03-28 14:31:47 +08:00
}
2024-03-28 19:03:31 +08:00
}