129 lines
3.4 KiB
JSON
129 lines
3.4 KiB
JSON
{
|
|
"name": "variable-conversion",
|
|
"displayName": "Variable Conversion",
|
|
"description": "",
|
|
"version": "0.0.1",
|
|
"engines": {
|
|
"vscode": "^1.87.0"
|
|
},
|
|
"categories": [
|
|
"Other"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/coder-xiaomo/text-conversion-vscode-extension.git"
|
|
},
|
|
"main": "./out/extension.js",
|
|
"activationEvents": [],
|
|
"contributes": {
|
|
"commands": [
|
|
{
|
|
"command": "extension.toCamelCase",
|
|
"title": "小驼峰 / 驼峰命名 (Camel Case) [ fooBar ]"
|
|
},
|
|
{
|
|
"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 ]"
|
|
},
|
|
{
|
|
"command": "extension.toUpperCase",
|
|
"title": "全大写 (Upper Case) [ FOOBAR ]"
|
|
},
|
|
{
|
|
"command": "extension.toLowerCase",
|
|
"title": "全小写 (Lower Case) [ foobar ]"
|
|
},
|
|
{
|
|
"command": "extension.toCamelSnakeCase",
|
|
"title": "驼峰蛇形命名 (Camel Snake Case) [ Foo_Bar ]"
|
|
}
|
|
],
|
|
"keybindings": [
|
|
{
|
|
"command": "extension.convertCase",
|
|
"key": "shift+alt+t",
|
|
"when": "editorTextFocus"
|
|
}
|
|
],
|
|
"menus": {
|
|
"editor/context": [
|
|
{
|
|
"submenu": "extension.stringConversionMenu",
|
|
"group": "navigation@9"
|
|
}
|
|
],
|
|
"extension.stringConversionMenu": [
|
|
{
|
|
"command": "extension.toCamelCase",
|
|
"group": "group-extension"
|
|
},
|
|
{
|
|
"command": "extension.toPascalCase",
|
|
"group": "group-extension"
|
|
},
|
|
{
|
|
"command": "extension.toKebabCase",
|
|
"group": "group-extension"
|
|
},
|
|
{
|
|
"command": "extension.toSnakeCase",
|
|
"group": "group-extension"
|
|
},
|
|
{
|
|
"command": "extension.toSnakeUpperCase",
|
|
"group": "group-extension"
|
|
},
|
|
{
|
|
"command": "extension.toUpperCase",
|
|
"group": "group-extension"
|
|
},
|
|
{
|
|
"command": "extension.toLowerCase",
|
|
"group": "group-extension"
|
|
},
|
|
{
|
|
"command": "extension.toCamelSnakeCase",
|
|
"group": "group-extension"
|
|
}
|
|
]
|
|
},
|
|
"submenus": [
|
|
{
|
|
"id": "extension.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"
|
|
}
|
|
} |