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

140 lines
4.1 KiB
JSON
Raw Normal View History

2024-03-28 14:31:47 +08:00
{
"name": "variable-conversion",
"displayName": "Variable Conversion",
"description": "A variable naming conversion extension, support camel case, pascal case, kebab(spinal) case, snake case, snake upper case, upper case, lower case, camel snake case, and more. \n一个变量命名方式互相转换的 VSCode 插件,支持小驼峰(驼峰命名)、大驼峰(帕斯卡命名)、连字符(脊柱式命名)、下划线(蛇形命名)、驼峰蛇形命名、下划线大写、全大写、全小写等常用命名方式",
2024-03-28 14:31:47 +08:00
"version": "0.0.1",
"engines": {
"vscode": "^1.87.0"
},
"categories": [
"Other"
],
"repository": {
"type": "git",
2024-04-03 10:35:59 +08:00
"url": "https://github.com/coder-xiaomo/variable-conversion-vscode-extension.git"
},
2024-04-03 10:35:59 +08:00
"repositories": [
{
"type": "git",
"url": "https://git.only4.work/coder-xiaomo/variable-conversion-vscode-extension.git"
},
{
"type": "git",
"url": "https://gitee.com/coder-xiaomo/variable-conversion-vscode-extension.git"
}
],
2024-03-28 14:31:47 +08:00
"main": "./out/extension.js",
"activationEvents": [],
2024-03-28 14:31:47 +08:00
"contributes": {
"commands": [
{
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.toCamelSnakeCase",
"title": "驼峰蛇形命名 (Camel 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 ]"
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 && _textSelectionLength >= 1",
"submenu": "extension.stringConversionMenu",
"group": "navigation@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"
},
2024-04-02 21:25:49 +08:00
{
"command": "extension.toKebabCase",
"group": "group-extension"
},
{
"command": "extension.toSnakeCase",
"group": "group-extension"
},
{
"command": "extension.toCamelSnakeCase",
2024-04-02 21:25:49 +08:00
"group": "group-extension"
},
{
"command": "extension.toSnakeUpperCase",
"group": "group-extension"
},
{
"command": "extension.toUpperCase",
"group": "group-extension"
},
2024-04-02 21:25:49 +08:00
{
"command": "extension.toLowerCase",
2024-04-02 21:25:49 +08:00
"group": "group-extension"
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",
"package": "echo \"start `vsce package`\" & vsce package"
2024-03-28 14:31:47 +08:00
},
"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
}