From 37c2442505b162180267d8bc688b82f9e6607f72 Mon Sep 17 00:00:00 2001 From: zhangbk1 Date: Tue, 2 Apr 2024 17:41:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20=E9=A9=BC=E5=B3=B0?= =?UTF-8?q?=E8=9B=87=E5=BD=A2=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ package.json | 4 ++++ src/type-definition/support-case.ts | 12 +++++++++++- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 0b60dfa..f96ebaa 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ dist node_modules .vscode-test/ *.vsix + +*.ignore \ No newline at end of file diff --git a/package.json b/package.json index 16870d5..2dc9b44 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,10 @@ "command": "extension.toLowerCase", "title": "全小写 (Lower Case) [ foobar ]" }, + { + "command": "extension.toCamelSnakeCase", + "title": "驼峰蛇形命名 (Camel Snake Case) [ Foo_Bar ]" + }, { "command": "editor.action.transformToCamelcase", "title": "[VSCode 自带] 驼峰式大小写 (Camel Case) [ fooBar ]" diff --git a/src/type-definition/support-case.ts b/src/type-definition/support-case.ts index c458a79..92b7b64 100644 --- a/src/type-definition/support-case.ts +++ b/src/type-definition/support-case.ts @@ -69,4 +69,14 @@ export enum SupportCase { * @since 2024-04-02 */ LOWER_CASE, -} \ No newline at end of file + + /** + * 驼峰蛇形命名 + * Camel Snake Case + * e.g. Foo_Bar + * + * @alias: camelSnakeCase / CamelSnakeCase / camel_snake_case / CAMEL_SNAKE_CASE + * @since 2024-04-02 + */ + CAMEL_SNAKE_CASE, +}