167 lines
5.2 KiB
JSON
167 lines
5.2 KiB
JSON
{
|
|
"name": "variable-conversion",
|
|
"displayName": "Variable Conversion",
|
|
"description": "A variable naming conversion extension, support camel case, pascal case, kebab(spinal) case, camel kebab case, kebab upper case, snake case, snake upper case, upper case, lower case, camel snake case, and more. \n一个变量命名方式互相转换的 VSCode 插件,支持小驼峰(驼峰命名)、大驼峰(帕斯卡命名)、连字符(脊柱式命名)、驼峰脊柱式命名、连字符命名大写、下划线(蛇形命名)、驼峰蛇形命名、下划线大写、全大写、全小写等常用命名方式",
|
|
"version": "0.0.1",
|
|
"engines": {
|
|
"vscode": "^1.87.0"
|
|
},
|
|
"categories": [
|
|
"Other"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/coder-xiaomo/variable-conversion-vscode-extension.git"
|
|
},
|
|
"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"
|
|
}
|
|
],
|
|
"main": "./out/extension.js",
|
|
"activationEvents": [
|
|
"*"
|
|
],
|
|
"contributes": {
|
|
"commands": [
|
|
{
|
|
"command": "variable-conversion.convertCase",
|
|
"title": "字符串转换"
|
|
},
|
|
{
|
|
"command": "variable-conversion.toCamelCase",
|
|
"title": "小驼峰 / 驼峰命名 (Camel Case) [ fooBar ]"
|
|
},
|
|
{
|
|
"command": "variable-conversion.toPascalCase",
|
|
"title": "大驼峰 / 帕斯卡命名 (Pascal Case) [ FooBar ]"
|
|
},
|
|
{
|
|
"command": "variable-conversion.toKebabCase",
|
|
"title": "连字符 / 脊柱式命名 (Kebab Case / Spinal Case) [ foo-bar ]"
|
|
},
|
|
{
|
|
"command": "variable-conversion.toCamelKebabCase",
|
|
"title": "连字符命名大写 (Kebab Upper Case) [ Foo-Bar ]"
|
|
},
|
|
{
|
|
"command": "variable-conversion.toKebabUpperCase",
|
|
"title": "连字符命名大写 (Kebab Upper Case) [ FOO-BAR ]"
|
|
},
|
|
{
|
|
"command": "variable-conversion.toSnakeCase",
|
|
"title": "下划线 / 蛇形命名 (Snake Case) [ foo_bar ]"
|
|
},
|
|
{
|
|
"command": "variable-conversion.toCamelSnakeCase",
|
|
"title": "驼峰蛇形命名 (Camel Snake Case) [ Foo_Bar ]"
|
|
},
|
|
{
|
|
"command": "variable-conversion.toSnakeUpperCase",
|
|
"title": "下划线大写 (Snake Upper Case) [ FOO_BAR ]"
|
|
},
|
|
{
|
|
"command": "variable-conversion.toUpperCase",
|
|
"title": "全大写 (Upper Case) [ FOOBAR ]"
|
|
},
|
|
{
|
|
"command": "variable-conversion.toLowerCase",
|
|
"title": "全小写 (Lower Case) [ foobar ]"
|
|
}
|
|
],
|
|
"keybindings": [
|
|
{
|
|
"command": "variable-conversion.convertCase",
|
|
"key": "shift+alt+t",
|
|
"when": "editorTextFocus"
|
|
}
|
|
],
|
|
"menus": {
|
|
"editor/context": [
|
|
{
|
|
"when": "editorTextFocus",
|
|
"command": "variable-conversion.convertCase",
|
|
"group": "navigation@9"
|
|
},
|
|
{
|
|
"when": "editorTextFocus && _textSelectionLength >= 1",
|
|
"submenu": "variable-conversion.stringConversionMenu",
|
|
"group": "navigation@9"
|
|
}
|
|
],
|
|
"variable-conversion.stringConversionMenu": [
|
|
{
|
|
"command": "variable-conversion.toCamelCase",
|
|
"group": "group-extension"
|
|
},
|
|
{
|
|
"command": "variable-conversion.toPascalCase",
|
|
"group": "group-extension"
|
|
},
|
|
{
|
|
"command": "variable-conversion.toKebabCase",
|
|
"group": "group-kebab"
|
|
},
|
|
{
|
|
"command": "variable-conversion.toCamelKebabCase",
|
|
"group": "group-kebab"
|
|
},
|
|
{
|
|
"command": "variable-conversion.toKebabUpperCase",
|
|
"group": "group-kebab"
|
|
},
|
|
{
|
|
"command": "variable-conversion.toSnakeCase",
|
|
"group": "group-extension"
|
|
},
|
|
{
|
|
"command": "variable-conversion.toCamelSnakeCase",
|
|
"group": "group-extension"
|
|
},
|
|
{
|
|
"command": "variable-conversion.toSnakeUpperCase",
|
|
"group": "group-extension"
|
|
},
|
|
{
|
|
"command": "variable-conversion.toUpperCase",
|
|
"group": "group-extension"
|
|
},
|
|
{
|
|
"command": "variable-conversion.toLowerCase",
|
|
"group": "group-extension"
|
|
}
|
|
]
|
|
},
|
|
"submenus": [
|
|
{
|
|
"id": "variable-conversion.stringConversionMenu",
|
|
"label": "将字符串转换为..."
|
|
}
|
|
]
|
|
},
|
|
"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"
|
|
},
|
|
"devDependencies": {
|
|
"@types/mocha": "^10.0.6",
|
|
"@types/node": "18.x",
|
|
"@types/vscode": "^1.87.0",
|
|
"@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"
|
|
}
|
|
} |