1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee
variable-conversion-vscode-.../package.json
2024-03-28 19:03:31 +08:00

82 lines
1.9 KiB
JSON

{
"name": "text-conversion",
"displayName": "text-conversion",
"description": "",
"version": "0.0.1",
"engines": {
"vscode": "^1.87.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:extension.convertCase"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "extension.toCamelCase",
"title": "转小驼峰 To Camel Case"
},
{
"command": "extension.toPascalCase",
"title": "转大驼峰 To Pascal Case"
},
{
"command": "extension.toUpperCase",
"title": "转大写 To Upper Case"
},
{
"command": "extension.toLowerCase",
"title": "转小写 To Lower Case"
}
],
"keybindings": [
{
"command": "extension.convertCase",
"key": "shift+alt+t",
"when": "editorTextFocus"
}
],
"menus": {
"editor/context": [
{
"when": "editorTextFocus",
"submenu": "extension.stringConversion"
}
],
"submenus": [
{
"id": "extension.stringConversion",
"when": "editorTextFocus",
"command": "extension.toCamelCase",
"label": "字符串转换"
},
{
"when": "editorTextFocus",
"command": "extension.toPascalCase"
}
]
}
},
"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/vscode": "^1.87.0",
"@types/mocha": "^10.0.6",
"@types/node": "18.x",
"@typescript-eslint/eslint-plugin": "^7.4.0",
"@typescript-eslint/parser": "^7.4.0",
"eslint": "^8.57.0",
"typescript": "^5.3.3",
"@vscode/test-cli": "^0.0.8",
"@vscode/test-electron": "^2.3.9"
}
}