2024-03-28 14:31:47 +08:00
{
2024-04-03 01:07:45 +08:00
"name" : "variable-conversion" ,
2024-04-07 02:40:12 +08:00
"displayName" : "Variable Conversion" ,
2024-07-28 20:56:03 +08:00
"description" : "一个强大的变量名转换插件,支持右键菜单、快捷键、状态栏等多种方式使用,支持小驼峰、大驼峰(帕斯卡)、下划线(蛇形)、中划线(连字符/脊柱式)、空格分隔、点分隔、全小写、全大写等常用命名方式(及组合)转换。 \nA powerful variable naming conversion extension. You can use it through the editer menu, shortcut keys and bottom bar. Support camel, pascal, snake, kebab(spinal), space, dot, lower, upper case, and more." ,
2024-07-29 00:49:57 +08:00
"version" : "1.0.11" ,
2024-04-06 14:17:42 +08:00
"icon" : "image/logo.png" ,
2024-04-05 01:46:37 +08:00
"publisher" : "coder-xiaomo" ,
2024-03-28 14:31:47 +08:00
"engines" : {
"vscode" : "^1.87.0"
} ,
"categories" : [
"Other"
] ,
2024-04-03 00:57:54 +08:00
"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 00:57:54 +08:00
} ,
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" ,
2024-04-06 14:27:10 +08:00
"activationEvents" : [
"onStartupFinished" ,
"onTextSelected"
] ,
2024-03-28 14:31:47 +08:00
"contributes" : {
2024-04-09 00:41:28 +08:00
"keybindings" : [
{
"command" : "variable-conversion.convertCase" ,
"key" : "shift+alt+t" ,
"when" : "editorTextFocus"
} ,
{
"command" : "variable-conversion.cyclicConvertCase.previous" ,
"key" : "ctrl+alt+[" ,
"args" : {
"arrowKey" : "["
} ,
"when" : "editorTextFocus"
} ,
{
"command" : "variable-conversion.cyclicConvertCase.next" ,
"key" : "ctrl+alt+]" ,
"args" : {
"arrowKey" : "]"
} ,
"when" : "editorTextFocus"
}
] ,
2024-03-28 14:31:47 +08:00
"commands" : [
2024-04-03 18:23:56 +08:00
{
2024-04-04 14:38:42 +08:00
"command" : "variable-conversion.convertCase" ,
2024-04-09 01:39:39 +08:00
"title" : "变量转换"
2024-04-03 18:23:56 +08:00
} ,
2024-03-28 14:31:47 +08:00
{
2024-04-04 14:38:42 +08:00
"command" : "variable-conversion.toCamelCase" ,
2024-04-05 00:59:57 +08:00
"title" : "小驼峰(驼峰)命名 (Camel Case) [ fooBar ]"
2024-03-28 19:03:31 +08:00
} ,
{
2024-04-04 14:38:42 +08:00
"command" : "variable-conversion.toPascalCase" ,
2024-04-05 00:59:57 +08:00
"title" : "大驼峰(帕斯卡)命名 (Pascal Case) [ FooBar ]"
2024-04-02 15:31:44 +08:00
} ,
{
2024-04-04 14:38:42 +08:00
"command" : "variable-conversion.toSnakeCase" ,
2024-04-05 00:59:57 +08:00
"title" : "下划线(蛇形)命名 (Snake Case) [ foo_bar ]"
2024-04-02 15:31:44 +08:00
} ,
2024-04-04 15:35:25 +08:00
{
"command" : "variable-conversion.toSnakeUpperCase" ,
2024-04-05 00:59:57 +08:00
"title" : "下划线(蛇形) + 全大写命名 (Snake Upper Case) [ FOO_BAR ]"
2024-04-04 15:35:25 +08:00
} ,
2024-04-03 10:27:50 +08:00
{
2024-04-05 00:59:57 +08:00
"command" : "variable-conversion.toSnakePascalCase" ,
"title" : "下划线(蛇形) + 大驼峰(帕斯卡)命名 (Snake Pascal Case) [ Foo_Bar ]"
} ,
{
"command" : "variable-conversion.toSnakeCamelCase" ,
"title" : "下划线(蛇形) + 小驼峰(驼峰)命名 (Snake Camel Case) [ foo_Bar ]"
2024-04-03 10:27:50 +08:00
} ,
2024-04-02 15:31:44 +08:00
{
2024-04-04 15:35:25 +08:00
"command" : "variable-conversion.toKebabCase" ,
2024-04-08 10:02:45 +08:00
"title" : "中划线(连字符/脊柱式)命名 (Kebab/Spinal Case) [ foo-bar ]"
2024-03-28 19:03:31 +08:00
} ,
{
2024-04-04 15:35:25 +08:00
"command" : "variable-conversion.toKebabUpperCase" ,
2024-04-08 10:02:45 +08:00
"title" : "中划线(连字符/脊柱式) + 全大写命名 (Kebab Upper Case) [ FOO-BAR ]"
2024-04-05 00:59:57 +08:00
} ,
{
"command" : "variable-conversion.toKebabPascalCase" ,
2024-04-08 10:02:45 +08:00
"title" : "中划线(连字符/脊柱式) + 大驼峰(帕斯卡)命名 (Kebab Pascal Case) [ Foo-Bar ]"
2024-04-04 15:35:25 +08:00
} ,
{
2024-04-05 00:59:57 +08:00
"command" : "variable-conversion.toKebabCamelCase" ,
2024-04-08 10:02:45 +08:00
"title" : "中划线(连字符/脊柱式) + 小驼峰(驼峰)命名 (Kebab Camel Case) [ foo-Bar ]"
2024-03-28 19:03:31 +08:00
} ,
2024-04-07 14:48:54 +08:00
{
"command" : "variable-conversion.toSpaceCase" ,
"title" : "空格分隔命名 (Space Case) [ foo bar ]"
} ,
{
"command" : "variable-conversion.toSpaceUpperCase" ,
"title" : "空格分隔 + 全大写命名 (Space Upper Case) [ FOO BAR ]"
} ,
{
"command" : "variable-conversion.toSpacePascalCase" ,
"title" : "空格分隔 + 大驼峰(帕斯卡)命名 (Space Pascal Case) [ Foo Bar ]"
} ,
{
"command" : "variable-conversion.toSpaceCamelCase" ,
"title" : "空格分隔 + 小驼峰(驼峰)命名 (Space Camel Case) [ foo Bar ]"
} ,
2024-07-28 20:56:03 +08:00
{
"command" : "variable-conversion.toDotCase" ,
"title" : "点分隔命名 (Dot Case) [ foo bar ]"
} ,
{
"command" : "variable-conversion.toDotUpperCase" ,
"title" : "点分隔 + 全大写命名 (Dot Upper Case) [ FOO BAR ]"
} ,
{
"command" : "variable-conversion.toDotPascalCase" ,
"title" : "点分隔 + 大驼峰(帕斯卡)命名 (Dot Pascal Case) [ Foo Bar ]"
} ,
{
"command" : "variable-conversion.toDotCamelCase" ,
"title" : "点分隔 + 小驼峰(驼峰)命名 (Dot Camel Case) [ foo Bar ]"
} ,
2024-03-28 19:03:31 +08:00
{
2024-04-04 14:38:42 +08:00
"command" : "variable-conversion.toLowerCase" ,
2024-04-02 15:31:44 +08:00
"title" : "全小写 (Lower Case) [ foobar ]"
2024-04-04 15:35:25 +08:00
} ,
{
"command" : "variable-conversion.toUpperCase" ,
"title" : "全大写 (Upper Case) [ FOOBAR ]"
2024-03-28 14:31:47 +08:00
}
2024-03-28 14:45:09 +08:00
] ,
2024-03-28 19:03:31 +08:00
"menus" : {
"editor/context" : [
2024-04-03 18:23:56 +08:00
{
"when" : "editorTextFocus" ,
2024-04-04 14:38:42 +08:00
"command" : "variable-conversion.convertCase" ,
2024-04-03 18:23:56 +08:00
"group" : "navigation@9"
} ,
2024-04-02 15:31:44 +08:00
{
2024-04-03 09:58:25 +08:00
"when" : "editorTextFocus && _textSelectionLength >= 1" ,
2024-04-04 14:38:42 +08:00
"submenu" : "variable-conversion.stringConversionMenu" ,
2024-04-03 09:57:02 +08:00
"group" : "navigation@9"
2024-03-28 19:03:31 +08:00
}
] ,
2024-04-04 14:38:42 +08:00
"variable-conversion.stringConversionMenu" : [
2024-03-28 19:03:31 +08:00
{
2024-07-29 23:39:18 +08:00
"when" : "!_isHideSubMenuItem_camel_case" ,
2024-04-04 14:38:42 +08:00
"command" : "variable-conversion.toCamelCase" ,
2024-04-04 15:35:25 +08:00
"group" : "group-1-camel@1"
2024-03-28 19:03:31 +08:00
} ,
{
2024-07-29 23:39:18 +08:00
"when" : "!_isHideSubMenuItem_pascal_case" ,
2024-04-04 14:38:42 +08:00
"command" : "variable-conversion.toPascalCase" ,
2024-04-04 15:35:25 +08:00
"group" : "group-1-camel@2"
2024-04-02 15:31:44 +08:00
} ,
2024-04-02 21:25:49 +08:00
{
2024-07-29 23:39:18 +08:00
"when" : "!_isHideSubMenuItem_snake_case" ,
2024-04-04 15:35:25 +08:00
"command" : "variable-conversion.toSnakeCase" ,
"group" : "group-2-snake@1"
2024-04-03 23:54:38 +08:00
} ,
{
2024-07-29 23:39:18 +08:00
"when" : "!_isHideSubMenuItem_snake_upper_case" ,
2024-04-04 15:35:25 +08:00
"command" : "variable-conversion.toSnakeUpperCase" ,
"group" : "group-2-snake@2"
2024-04-03 23:54:38 +08:00
} ,
{
2024-07-29 23:39:18 +08:00
"when" : "!_isHideSubMenuItem_snake_pascal_case" ,
2024-04-05 00:59:57 +08:00
"command" : "variable-conversion.toSnakePascalCase" ,
2024-04-04 15:35:25 +08:00
"group" : "group-2-snake@3"
2024-04-02 21:25:49 +08:00
} ,
2024-04-05 00:59:57 +08:00
{
2024-07-29 23:39:18 +08:00
"when" : "!_isHideSubMenuItem_snake_camel_case" ,
2024-04-05 00:59:57 +08:00
"command" : "variable-conversion.toSnakeCamelCase" ,
"group" : "group-2-snake@4"
} ,
2024-04-02 21:25:49 +08:00
{
2024-07-29 23:39:18 +08:00
"when" : "!_isHideSubMenuItem_kebab_case" ,
2024-04-04 15:35:25 +08:00
"command" : "variable-conversion.toKebabCase" ,
"group" : "group-3-kebab@1"
2024-04-02 21:25:49 +08:00
} ,
{
2024-07-29 23:39:18 +08:00
"when" : "!_isHideSubMenuItem_kebab_upper_case" ,
2024-04-04 15:35:25 +08:00
"command" : "variable-conversion.toKebabUpperCase" ,
"group" : "group-3-kebab@2"
2024-04-02 21:25:49 +08:00
} ,
2024-04-02 15:31:44 +08:00
{
2024-07-29 23:39:18 +08:00
"when" : "!_isHideSubMenuItem_kebab_pascal_case" ,
2024-04-05 00:59:57 +08:00
"command" : "variable-conversion.toKebabPascalCase" ,
2024-04-04 15:35:25 +08:00
"group" : "group-3-kebab@3"
2024-04-02 15:31:44 +08:00
} ,
2024-04-05 00:59:57 +08:00
{
2024-07-29 23:39:18 +08:00
"when" : "!_isHideSubMenuItem_kebab_camel_case" ,
2024-04-05 00:59:57 +08:00
"command" : "variable-conversion.toKebabCamelCase" ,
"group" : "group-3-kebab@4"
} ,
2024-04-07 14:48:54 +08:00
{
2024-07-29 23:39:18 +08:00
"when" : "!_isHideSubMenuItem_space_case" ,
2024-04-07 14:48:54 +08:00
"command" : "variable-conversion.toSpaceCase" ,
"group" : "group-4-space@1"
} ,
{
2024-07-29 23:39:18 +08:00
"when" : "!_isHideSubMenuItem_space_upper_case" ,
2024-04-07 14:48:54 +08:00
"command" : "variable-conversion.toSpaceUpperCase" ,
"group" : "group-4-space@2"
} ,
{
2024-07-29 23:39:18 +08:00
"when" : "!_isHideSubMenuItem_space_pascal_case" ,
2024-04-07 14:48:54 +08:00
"command" : "variable-conversion.toSpacePascalCase" ,
"group" : "group-4-space@3"
} ,
{
2024-07-29 23:39:18 +08:00
"when" : "!_isHideSubMenuItem_space_camel_case" ,
2024-04-07 14:48:54 +08:00
"command" : "variable-conversion.toSpaceCamelCase" ,
"group" : "group-4-space@4"
} ,
2024-07-28 20:56:03 +08:00
{
2024-07-29 23:39:18 +08:00
"when" : "!_isHideSubMenuItem_dot_case" ,
2024-07-28 20:56:03 +08:00
"command" : "variable-conversion.toDotCase" ,
"group" : "group-5-dot@1"
} ,
{
2024-07-29 23:39:18 +08:00
"when" : "!_isHideSubMenuItem_dot_upper_case" ,
2024-07-28 20:56:03 +08:00
"command" : "variable-conversion.toDotUpperCase" ,
"group" : "group-5-dot@2"
} ,
{
2024-07-29 23:39:18 +08:00
"when" : "!_isHideSubMenuItem_dot_pascal_case" ,
2024-07-28 20:56:03 +08:00
"command" : "variable-conversion.toDotPascalCase" ,
"group" : "group-5-dot@3"
} ,
{
2024-07-29 23:39:18 +08:00
"when" : "!_isHideSubMenuItem_dot_camel_case" ,
2024-07-28 20:56:03 +08:00
"command" : "variable-conversion.toDotCamelCase" ,
"group" : "group-5-dot@4"
} ,
2024-04-02 15:31:44 +08:00
{
2024-07-29 23:39:18 +08:00
"when" : "!_isHideSubMenuItem_lower_case" ,
2024-04-04 15:35:25 +08:00
"command" : "variable-conversion.toLowerCase" ,
2024-07-29 23:39:18 +08:00
"group" : "group-6-upper-lower@1"
2024-04-02 15:31:44 +08:00
} ,
2024-04-02 21:25:49 +08:00
{
2024-07-29 23:39:18 +08:00
"when" : "!_isHideSubMenuItem_upper_case" ,
2024-04-04 15:35:25 +08:00
"command" : "variable-conversion.toUpperCase" ,
2024-07-29 23:39:18 +08:00
"group" : "group-6-upper-lower@2"
2024-03-28 19:03:31 +08:00
}
]
2024-04-02 15:31:44 +08:00
} ,
"submenus" : [
{
2024-04-04 14:38:42 +08:00
"id" : "variable-conversion.stringConversionMenu" ,
2024-04-09 01:39:39 +08:00
"label" : "将变量转换为..."
2024-04-02 15:31:44 +08:00
}
2024-07-29 23:39:18 +08:00
] ,
"configuration" : {
"title" : "Variable Conversion 变量转换" ,
"properties" : {
"variable-conversion.disableFormat" : {
"order" : 1 ,
"markdownDescription" : "定义哪些格式是禁用的\n\nDefine which formats are disabled.\n\n若您感觉以下配置比较麻烦, 也可以选择在 `settings.json` 中编辑:\n\nIf you find the following configuration troublesome, you can also edit this configuration item in `settings.json`:\n\n`\"variable-conversion.disableFormat\": [ ... ],`\n\n[在 settings.json 中编辑 (Edit in settings.json)](command:workbench.action.openSettingsJson)\n\n配置后, 您可能需要*重启扩展宿主*,或*重启当前窗口*才可使该配置完全生效(二选一即可):\n\nYou may need to *restart extension host* or *reload window* after configuration to take full effect (either):\n\n[重启扩展宿主 (Restart Extension Host)](command:workbench.action.restartExtensionHost), [重启当前窗口 (Reload Window)](command:workbench.action.reloadWindow)" ,
"type" : "array" ,
"items" : {
"type" : "string" ,
"enum" : [
"camel_case" ,
"pascal_case" ,
"snake_case" ,
"snake_camel_case" ,
"snake_pascal_case" ,
"snake_upper_case" ,
"kebab_case" ,
"kebab_camel_case" ,
"kebab_pascal_case" ,
"kebab_upper_case" ,
"space_case" ,
"space_camel_case" ,
"space_pascal_case" ,
"space_upper_case" ,
"dot_case" ,
"dot_camel_case" ,
"dot_pascal_case" ,
"dot_upper_case" ,
"lower_case" ,
"upper_case"
] ,
"enumDescriptions" : [
"小驼峰(驼峰)命名" ,
"大驼峰(帕斯卡)命名" ,
"下划线(蛇形)命名" ,
"下划线(蛇形) + 小驼峰(驼峰)命名" ,
"下划线(蛇形) + 大驼峰(帕斯卡)命名" ,
"下划线(蛇形) + 全大写命名" ,
"中划线(连字符/脊柱式)命名" ,
"中划线(连字符/脊柱式) + 小驼峰(驼峰)命名" ,
"中划线(连字符/脊柱式) + 大驼峰(帕斯卡)命名" ,
"中划线(连字符/脊柱式) + 全大写命名" ,
"空格分隔命名" ,
"空格分隔 + 小驼峰(驼峰)命名" ,
"空格分隔 + 大驼峰(帕斯卡)命名" ,
"空格分隔 + 全大写命名" ,
"点分隔命名" ,
"点分隔 + 小驼峰(驼峰)命名" ,
"点分隔 + 大驼峰(帕斯卡)命名" ,
"点分隔 + 全大写命名" ,
"全小写" ,
"全大写"
]
} ,
"default" : [ ]
}
}
}
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" ,
2024-04-03 00:57:54 +08:00
"test" : "vscode-test" ,
2024-04-05 01:46:37 +08:00
"package" : "echo \"start `vsce package`\" & vsce package" ,
"publish" : "vsce publish"
2024-03-28 14:31:47 +08:00
} ,
"devDependencies" : {
"@types/mocha" : "^10.0.6" ,
"@types/node" : "18.x" ,
2024-04-02 15:31:44 +08:00
"@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" ,
2024-04-02 15:31:44 +08:00
"@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
}